@Test public void fromMapShouldThrowWhenWrongKeywordValue() { assertThatThrownBy(() -> Keywords.lenientFactory() .fromMap(ImmutableMap.of(ANY_KEYWORD, false))) .isInstanceOf(IllegalArgumentException.class); }
public static KeywordsFactory lenientFactory() { return LENIENT_KEYWORDS_FACTORY; }
Keywords { public static KeywordsFactory lenientFactory() { return LENIENT_KEYWORDS_FACTORY; } }
Keywords { public static KeywordsFactory lenientFactory() { return LENIENT_KEYWORDS_FACTORY; } private  Keywords(ImmutableSet<Keyword> keywords); }
Keywords { public static KeywordsFactory lenientFactory() { return LENIENT_KEYWORDS_FACTORY; } private  Keywords(ImmutableSet<Keyword> keywords); static KeywordsFactory strictFactory(); static KeywordsFactory lenientFactory(); Flags asFlags(); Flags asFlagsWithRecentAndDeletedFrom(Flags originFlags); ImmutableMap<String, Boolean> asMap(); ImmutableSet<Keyword> getKeywords(); boolean contains(Keyword keyword); @Override final boolean equals(Object other); @Override final int hashCode(); @Override String toString(); }
Keywords { public static KeywordsFactory lenientFactory() { return LENIENT_KEYWORDS_FACTORY; } private  Keywords(ImmutableSet<Keyword> keywords); static KeywordsFactory strictFactory(); static KeywordsFactory lenientFactory(); Flags asFlags(); Flags asFlagsWithRecentAndDeletedFrom(Flags originFlags); ImmutableMap<String, Boolean> asMap(); ImmutableSet<Keyword> getKeywords(); boolean contains(Keyword keyword); @Override final boolean equals(Object other); @Override final int hashCode(); @Override String toString(); static final Keywords DEFAULT_VALUE; }