@Test public void testGetFacets() throws Exception { FacetProvider provider = new PropertyFacetProvider(); Map<String, Facet> facets = provider.getFacetsAsMap(PropertiesPojo.class); assertNotNull(facets); assertEquals(5, facets.size()); assertTrue(facets.containsKey("baz")); assertTrue(facets.containsKey("writeOnly")); assertTrue(facets.containsKey("readOnly")); assertTrue(facets.containsKey("writeOnlyBoolean")); assertTrue(facets.containsKey("readOnlyBoolean")); assertFalse(facets.containsKey("ignoredProperty")); }
@Override public List<Facet> getFacets(Class<?> pojoClass) { return facetsOf(pojoClass); }
PropertyFacetProvider implements FacetProvider { @Override public List<Facet> getFacets(Class<?> pojoClass) { return facetsOf(pojoClass); } }
PropertyFacetProvider implements FacetProvider { @Override public List<Facet> getFacets(Class<?> pojoClass) { return facetsOf(pojoClass); }  }
PropertyFacetProvider implements FacetProvider { @Override public List<Facet> getFacets(Class<?> pojoClass) { return facetsOf(pojoClass); }  @Override List<Facet> getFacets(Class<?> pojoClass); }
PropertyFacetProvider implements FacetProvider { @Override public List<Facet> getFacets(Class<?> pojoClass) { return facetsOf(pojoClass); }  @Override List<Facet> getFacets(Class<?> pojoClass);  }