@Test public void exceptionIsThrownForWronglyConstructedJsonDictionary_message1() { final Map<String, Object> eventMap = ImmutableMap.of(); assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> MessageEvent.fromMessage(eventMap)); }
public static MessageEvent fromMessage(final Map<String, Object> eventMap) { final List<?> arguments = (List<?>) eventMap.get("message"); return from((Map<?, ?>) arguments.get(0)); }
MessageEvent { public static MessageEvent fromMessage(final Map<String, Object> eventMap) { final List<?> arguments = (List<?>) eventMap.get("message"); return from((Map<?, ?>) arguments.get(0)); } }
MessageEvent { public static MessageEvent fromMessage(final Map<String, Object> eventMap) { final List<?> arguments = (List<?>) eventMap.get("message"); return from((Map<?, ?>) arguments.get(0)); } MessageEvent(final String message, final LogLevel level, final String timestamp); }
MessageEvent { public static MessageEvent fromMessage(final Map<String, Object> eventMap) { final List<?> arguments = (List<?>) eventMap.get("message"); return from((Map<?, ?>) arguments.get(0)); } MessageEvent(final String message, final LogLevel level, final String timestamp); static MessageEvent fromMessage(final Map<String, Object> eventMap); static MessageEvent fromLogMessage(final Map<String, Object> eventMap); String getMessage(); LogLevel getLevel(); String getTimestamp(); @Override boolean equals(final Object obj); @Override int hashCode(); }
MessageEvent { public static MessageEvent fromMessage(final Map<String, Object> eventMap) { final List<?> arguments = (List<?>) eventMap.get("message"); return from((Map<?, ?>) arguments.get(0)); } MessageEvent(final String message, final LogLevel level, final String timestamp); static MessageEvent fromMessage(final Map<String, Object> eventMap); static MessageEvent fromLogMessage(final Map<String, Object> eventMap); String getMessage(); LogLevel getLevel(); String getTimestamp(); @Override boolean equals(final Object obj); @Override int hashCode();  }