@Test public void exceptionIsThrownForWronglyConstructedJsonDictionary_3() { final Map<String, Object> eventMap = ImmutableMap.of("should_continue", newArrayList()); assertThatExceptionOfType(RuntimeException.class) .isThrownBy(() -> ShouldContinueEvent.from(mock(AgentClient.class), eventMap)); }
public static ShouldContinueEvent from(final AgentClient client, final Map<String, Object> eventMap) { final List<?> arguments = (List<?>) eventMap.get("should_continue"); final Map<String, String> attributes = Events.ensureOrderedMapOfStringsToStrings((Map<?, ?>) arguments.get(0)); final PausingPoint pausingPoint = PausingPoint.valueOf(attributes.get("pausing_point").toUpperCase()); return new ShouldContinueEvent(new ShouldContinueEventResponder(client), pausingPoint); }
ShouldContinueEvent { public static ShouldContinueEvent from(final AgentClient client, final Map<String, Object> eventMap) { final List<?> arguments = (List<?>) eventMap.get("should_continue"); final Map<String, String> attributes = Events.ensureOrderedMapOfStringsToStrings((Map<?, ?>) arguments.get(0)); final PausingPoint pausingPoint = PausingPoint.valueOf(attributes.get("pausing_point").toUpperCase()); return new ShouldContinueEvent(new ShouldContinueEventResponder(client), pausingPoint); } }
ShouldContinueEvent { public static ShouldContinueEvent from(final AgentClient client, final Map<String, Object> eventMap) { final List<?> arguments = (List<?>) eventMap.get("should_continue"); final Map<String, String> attributes = Events.ensureOrderedMapOfStringsToStrings((Map<?, ?>) arguments.get(0)); final PausingPoint pausingPoint = PausingPoint.valueOf(attributes.get("pausing_point").toUpperCase()); return new ShouldContinueEvent(new ShouldContinueEventResponder(client), pausingPoint); } ShouldContinueEvent(final ShouldContinueEventResponder responder,
            final PausingPoint pausingPoint); }
ShouldContinueEvent { public static ShouldContinueEvent from(final AgentClient client, final Map<String, Object> eventMap) { final List<?> arguments = (List<?>) eventMap.get("should_continue"); final Map<String, String> attributes = Events.ensureOrderedMapOfStringsToStrings((Map<?, ?>) arguments.get(0)); final PausingPoint pausingPoint = PausingPoint.valueOf(attributes.get("pausing_point").toUpperCase()); return new ShouldContinueEvent(new ShouldContinueEventResponder(client), pausingPoint); } ShouldContinueEvent(final ShouldContinueEventResponder responder,
            final PausingPoint pausingPoint); static ShouldContinueEvent from(final AgentClient client, final Map<String, Object> eventMap); PausingPoint getPausingPoint(); ShouldContinueEventResponder responder(); @Override boolean equals(final Object obj); @Override int hashCode(); }
ShouldContinueEvent { public static ShouldContinueEvent from(final AgentClient client, final Map<String, Object> eventMap) { final List<?> arguments = (List<?>) eventMap.get("should_continue"); final Map<String, String> attributes = Events.ensureOrderedMapOfStringsToStrings((Map<?, ?>) arguments.get(0)); final PausingPoint pausingPoint = PausingPoint.valueOf(attributes.get("pausing_point").toUpperCase()); return new ShouldContinueEvent(new ShouldContinueEventResponder(client), pausingPoint); } ShouldContinueEvent(final ShouldContinueEventResponder responder,
            final PausingPoint pausingPoint); static ShouldContinueEvent from(final AgentClient client, final Map<String, Object> eventMap); PausingPoint getPausingPoint(); ShouldContinueEventResponder responder(); @Override boolean equals(final Object obj); @Override int hashCode();  }