@Test public void testGetViews() { Set<ViewType> viewTypes = new HashSet<ViewType>(); for (ViewInfo vi : new DefaultViewProvider().getViews("component")) { viewTypes.add(vi.getViewType()); } Assert.assertTrue(viewTypes.contains(ViewType.NODE)); Assert.assertTrue(viewTypes.contains(ViewType.LAYOUT)); Assert.assertTrue(viewTypes.contains(ViewType.INSPECTOR)); Assert.assertTrue(viewTypes.contains(ViewType.VIEW_SWITCHER)); Assert.assertTrue(viewTypes.contains(ViewType.NAVIGATOR)); Assert.assertTrue(viewTypes.contains(ViewType.TITLE)); Assert.assertTrue(viewTypes.contains(ViewType.RIGHT)); }
@Override public Collection<ViewInfo> getViews(String componentTypeId) { return myViewInfos; }
DefaultViewProvider extends AbstractComponentProvider { @Override public Collection<ViewInfo> getViews(String componentTypeId) { return myViewInfos; } }
DefaultViewProvider extends AbstractComponentProvider { @Override public Collection<ViewInfo> getViews(String componentTypeId) { return myViewInfos; } DefaultViewProvider(); }
DefaultViewProvider extends AbstractComponentProvider { @Override public Collection<ViewInfo> getViews(String componentTypeId) { return myViewInfos; } DefaultViewProvider(); @Override Collection<ViewInfo> getViews(String componentTypeId); @Override T getAsset(TypeInfo<?> type, Class<T> assetClass); }
DefaultViewProvider extends AbstractComponentProvider { @Override public Collection<ViewInfo> getViews(String componentTypeId) { return myViewInfos; } DefaultViewProvider(); @Override Collection<ViewInfo> getViews(String componentTypeId); @Override T getAsset(TypeInfo<?> type, Class<T> assetClass);  }