@Test public void TagFilter_should_accept_all_types(){ GarmadonMessageFilter.HeaderFilter filter = GarmadonMessageFilters.hasTag(Header.Tag.NODEMANAGER); IntStream.of(20).forEach(i -> assertThat(filter.accepts(random.nextInt()), is(true))); }
public static GarmadonMessageFilter.HeaderFilter hasTag(Header.Tag tag) { return new GarmadonMessageFilter.HeaderFilter.TagFilter(tag); }
GarmadonMessageFilters { public static GarmadonMessageFilter.HeaderFilter hasTag(Header.Tag tag) { return new GarmadonMessageFilter.HeaderFilter.TagFilter(tag); } }
GarmadonMessageFilters { public static GarmadonMessageFilter.HeaderFilter hasTag(Header.Tag tag) { return new GarmadonMessageFilter.HeaderFilter.TagFilter(tag); } protected  GarmadonMessageFilters(); }
GarmadonMessageFilters { public static GarmadonMessageFilter.HeaderFilter hasTag(Header.Tag tag) { return new GarmadonMessageFilter.HeaderFilter.TagFilter(tag); } protected  GarmadonMessageFilters(); static GarmadonMessageFilter.ANY any(); static GarmadonMessageFilter.NONE none(); static GarmadonMessageFilter.HeaderFilter hasTag(Header.Tag tag); static GarmadonMessageFilter.HeaderFilter hasContainerId(String id); static GarmadonMessageFilter.HeaderFilter hasFramework(String framework); static GarmadonMessageFilter.TypeFilter hasType(int type); static GarmadonMessageFilter.NotFilter not(GarmadonMessageFilter other); }
GarmadonMessageFilters { public static GarmadonMessageFilter.HeaderFilter hasTag(Header.Tag tag) { return new GarmadonMessageFilter.HeaderFilter.TagFilter(tag); } protected  GarmadonMessageFilters(); static GarmadonMessageFilter.ANY any(); static GarmadonMessageFilter.NONE none(); static GarmadonMessageFilter.HeaderFilter hasTag(Header.Tag tag); static GarmadonMessageFilter.HeaderFilter hasContainerId(String id); static GarmadonMessageFilter.HeaderFilter hasFramework(String framework); static GarmadonMessageFilter.TypeFilter hasType(int type); static GarmadonMessageFilter.NotFilter not(GarmadonMessageFilter other);  }