@Test public void testPolicyInfos() { boolean foundPolicy = false; for (PolicyInfo info : provider.getPolicyInfos()) { for (Class<?> c : info.getPolicyClasses()) { if (c.equals(GraphicalViewPolicy.class)) { foundPolicy = true; Assert.assertEquals(info.getCategoryKey(), PolicyInfo.CategoryType.FILTER_VIEW_ROLE.getKey()); } } } Assert.assertTrue(foundPolicy); }
@Override public Collection<PolicyInfo> getPolicyInfos() { return policyInfos; }
GraphicalComponentProvider extends AbstractComponentProvider { @Override public Collection<PolicyInfo> getPolicyInfos() { return policyInfos; } }
GraphicalComponentProvider extends AbstractComponentProvider { @Override public Collection<PolicyInfo> getPolicyInfos() { return policyInfos; } GraphicalComponentProvider(); }
GraphicalComponentProvider extends AbstractComponentProvider { @Override public Collection<PolicyInfo> getPolicyInfos() { return policyInfos; } GraphicalComponentProvider(); @Override Collection<ViewInfo> getViews(String componentTypeId); @Override Collection<PolicyInfo> getPolicyInfos(); @Override Collection<ComponentTypeInfo> getComponentTypes(); @Override T getAsset(TypeInfo<?> typeInfo, Class<T> assetClass); }
GraphicalComponentProvider extends AbstractComponentProvider { @Override public Collection<PolicyInfo> getPolicyInfos() { return policyInfos; } GraphicalComponentProvider(); @Override Collection<ViewInfo> getViews(String componentTypeId); @Override Collection<PolicyInfo> getPolicyInfos(); @Override Collection<ComponentTypeInfo> getComponentTypes(); @Override T getAsset(TypeInfo<?> typeInfo, Class<T> assetClass);  }