@Test public void testPolicyInfos() { Assert.assertEquals(evaluatorProvider.getPolicyInfos().size(), 2); Iterator<PolicyInfo> it = evaluatorProvider.getPolicyInfos().iterator(); Assert.assertEquals(it.next().getPolicyClasses()[0],EvaluatorViewPolicy.class); Assert.assertEquals(it.next().getPolicyClasses()[0],EnumeratorViewPolicy.class); Assert.assertEquals(multiProvider.getPolicyInfos().size(), 4); it = multiProvider.getPolicyInfos().iterator(); Assert.assertEquals(it.next().getPolicyClasses()[0],EvaluatorViewPolicy.class); Assert.assertEquals(it.next().getPolicyClasses()[0],EnumeratorViewPolicy.class); Assert.assertEquals(it.next().getPolicyClasses()[0],MultiChildRemovalPolicy.class); Assert.assertEquals(it.next().getPolicyClasses()[0],MultiCompositionPolicy.class); }
@Override public Collection<PolicyInfo> getPolicyInfos() { return policies; }
EvaluatorComponentProvider extends AbstractComponentProvider { @Override public Collection<PolicyInfo> getPolicyInfos() { return policies; } }
EvaluatorComponentProvider extends AbstractComponentProvider { @Override public Collection<PolicyInfo> getPolicyInfos() { return policies; } EvaluatorComponentProvider(); }
EvaluatorComponentProvider extends AbstractComponentProvider { @Override public Collection<PolicyInfo> getPolicyInfos() { return policies; } EvaluatorComponentProvider(); @Override Collection<ComponentTypeInfo> getComponentTypes(); @Override Collection<ViewInfo> getViews(String componentTypeId); @Override Collection<PolicyInfo> getPolicyInfos(); @Override //Add menu items for creating enums with puis selected in My Directory Collection<MenuItemInfo> getMenuItemInfos(); @Override T getAsset(TypeInfo<?> typeInfo, Class<T> assetClass); }
EvaluatorComponentProvider extends AbstractComponentProvider { @Override public Collection<PolicyInfo> getPolicyInfos() { return policies; } EvaluatorComponentProvider(); @Override Collection<ComponentTypeInfo> getComponentTypes(); @Override Collection<ViewInfo> getViews(String componentTypeId); @Override Collection<PolicyInfo> getPolicyInfos(); @Override //Add menu items for creating enums with puis selected in My Directory Collection<MenuItemInfo> getMenuItemInfos(); @Override T getAsset(TypeInfo<?> typeInfo, Class<T> assetClass);  }