@Test @Parameters(method = "methods") public void testFilterAllOutput(OverloadedFilterAllOutput method) { ObjectMapper mapper = method.filterAllOutput(new ObjectMapper(), "foo/bar"); AnnotationIntrospector introspector = mapper.getSerializationConfig().getAnnotationIntrospector(); Object filterId = introspector.findFilterId((Annotated) AnnotatedClass.construct( TestObject.class, introspector, mapper.getDeserializationConfig())); assertNotNull(filterId); PropertyFilter propertyFilter = mapper.getSerializationConfig().getFilterProvider().findPropertyFilter(filterId, new TestObject()); assertNotNull(propertyFilter); assertTrue(propertyFilter instanceof JacksonMatcherFilter); assertEquals(Matcher.of("foo/bar"), ((JacksonMatcherFilter) propertyFilter).getMatcher()); }
public static ObjectMapper filterAllOutput(ObjectMapper mapper, CharSequence pattern) { return filterAllOutput(mapper, Matcher.of(pattern)); }
JacksonFilters { public static ObjectMapper filterAllOutput(ObjectMapper mapper, CharSequence pattern) { return filterAllOutput(mapper, Matcher.of(pattern)); } }
JacksonFilters { public static ObjectMapper filterAllOutput(ObjectMapper mapper, CharSequence pattern) { return filterAllOutput(mapper, Matcher.of(pattern)); } private  JacksonFilters(); }
JacksonFilters { public static ObjectMapper filterAllOutput(ObjectMapper mapper, CharSequence pattern) { return filterAllOutput(mapper, Matcher.of(pattern)); } private  JacksonFilters(); static ObjectMapper filterAllOutput(ObjectMapper mapper, CharSequence pattern); static ObjectMapper filterAllOutput(ObjectMapper mapper, Matcher matcher); }
JacksonFilters { public static ObjectMapper filterAllOutput(ObjectMapper mapper, CharSequence pattern) { return filterAllOutput(mapper, Matcher.of(pattern)); } private  JacksonFilters(); static ObjectMapper filterAllOutput(ObjectMapper mapper, CharSequence pattern); static ObjectMapper filterAllOutput(ObjectMapper mapper, Matcher matcher);  }