@Test public void testViewInfos() { boolean foundDynamicGraphicalView = false; boolean foundStaticGraphicalView = true; for (ViewInfo info : provider.getViews(null)) { if (info.getViewClass().equals(GraphicalManifestation.class)) foundDynamicGraphicalView = true; if (info.getViewClass().equals(StaticGraphicalView.class)) foundStaticGraphicalView = true; } Assert.assertTrue(foundDynamicGraphicalView); Assert.assertTrue(foundStaticGraphicalView); }
@Override public Collection<ViewInfo> getViews(String componentTypeId) { return VIEW_INFOS; }
GraphicalComponentProvider extends AbstractComponentProvider { @Override public Collection<ViewInfo> getViews(String componentTypeId) { return VIEW_INFOS; } }
GraphicalComponentProvider extends AbstractComponentProvider { @Override public Collection<ViewInfo> getViews(String componentTypeId) { return VIEW_INFOS; } GraphicalComponentProvider(); }
GraphicalComponentProvider extends AbstractComponentProvider { @Override public Collection<ViewInfo> getViews(String componentTypeId) { return VIEW_INFOS; } 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<ViewInfo> getViews(String componentTypeId) { return VIEW_INFOS; } GraphicalComponentProvider(); @Override Collection<ViewInfo> getViews(String componentTypeId); @Override Collection<PolicyInfo> getPolicyInfos(); @Override Collection<ComponentTypeInfo> getComponentTypes(); @Override T getAsset(TypeInfo<?> typeInfo, Class<T> assetClass);  }