KeywordStartedEvent { public static KeywordStartedEvent fromPre(final Map<String, Object> eventMap) { return fromEventArguments((List<?>) eventMap.get("pre_start_keyword")); } KeywordStartedEvent(final String name, final String keywordType, final String libraryName); static KeywordStartedEvent fromPre(final Map<String, Object> eventMap); static KeywordStartedEvent from(final Map<String, Object> eventMap); String getName(); String getKeywordType(); String getLibraryName(); RunningKeyword getRunningKeyword(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void exceptionIsThrownForWronglyConstructedJsonDictionary_pre3() { final Map<String, Object> eventMap = ImmutableMap.of("pre_start_keyword", newArrayList()); assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> KeywordStartedEvent.fromPre(eventMap)); }
@Test public void exceptionIsThrownForWronglyConstructedJsonDictionary_pre4() { final Map<String, Object> eventMap = ImmutableMap.of("pre_start_keyword", newArrayList(new Object())); assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> KeywordStartedEvent.fromPre(eventMap)); }
@Test public void exceptionIsThrownForWronglyConstructedJsonDictionary_pre5() { final Map<String, Object> eventMap = ImmutableMap.of("pre_start_keyword", newArrayList(ImmutableMap.of())); assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> KeywordStartedEvent.fromPre(eventMap)); }
@Test public void exceptionIsThrownForWronglyConstructedJsonDictionary_pre6() { final Map<String, Object> eventMap = ImmutableMap.of("pre_start_keyword", newArrayList("foo", ImmutableMap.of("kwname", "kwName", "libname", "libName"))); assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> KeywordStartedEvent.fromPre(eventMap)); }
@Test public void exceptionIsThrownForWronglyConstructedJsonDictionary_pre7() { final Map<String, Object> eventMap = ImmutableMap.of("pre_start_keyword", newArrayList("foo", ImmutableMap.of("type", "kwType", "libname", "libName"))); assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> KeywordStartedEvent.fromPre(eventMap)); }
@Test public void exceptionIsThrownForWronglyConstructedJsonDictionary_pre8() { final Map<String, Object> eventMap = ImmutableMap.of("pre_start_keyword", newArrayList("foo", ImmutableMap.of("kwname", "kwName", "type", "kwType"))); assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> KeywordStartedEvent.fromPre(eventMap)); }
@Test public void exceptionIsThrownForWronglyConstructedJsonDictionary_pre9() { final Map<String, Object> eventMap = ImmutableMap.of("start_keyword", newArrayList("kwName", ImmutableMap.of("type", "kwType"))); assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> KeywordStartedEvent.fromPre(eventMap)); }
@Test public void exceptionIsThrownForWronglyConstructedJsonDictionary_pre1() { final Map<String, Object> eventMap = ImmutableMap.of(); assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> KeywordStartedEvent.fromPre(eventMap)); }
@Test public void exceptionIsThrownForWronglyConstructedJsonDictionary_pre2() { final Map<String, Object> eventMap = ImmutableMap.of("something", newArrayList("kwName", ImmutableMap.of("type", "kwType"))); assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> KeywordStartedEvent.fromPre(eventMap)); }