@Test public void twoViews() { viewList = ImmutableList.of(FOO_VIEW, BAR_VIEW); ext = new UiExtension.Builder(cl, viewList).build(); assertEquals("expected 2 views", 2, ext.views().size()); view = ext.views().get(0); assertEquals("wrong view category", OTHER, view.category()); assertEquals("wrong view id", FOO_ID, view.id()); assertEquals("wrong view label", FOO_LABEL, view.label()); view = ext.views().get(1); assertEquals("wrong view category", OTHER, view.category()); assertEquals("wrong view id", BAR_ID, view.id()); assertEquals("wrong view label", BAR_LABEL, view.label()); }
public List<UiView> views() { return isValid ? views : ImmutableList.of(); }
UiExtension { public List<UiView> views() { return isValid ? views : ImmutableList.of(); } }
UiExtension { public List<UiView> views() { return isValid ? views : ImmutableList.of(); } private  UiExtension(ClassLoader cl, String path, List<UiView> views,
                        UiMessageHandlerFactory mhFactory,
                        UiTopoOverlayFactory toFactory,
                        UiTopoMapFactory tmFactory); }
UiExtension { public List<UiView> views() { return isValid ? views : ImmutableList.of(); } private  UiExtension(ClassLoader cl, String path, List<UiView> views,
                        UiMessageHandlerFactory mhFactory,
                        UiTopoOverlayFactory toFactory,
                        UiTopoMapFactory tmFactory); InputStream css(); InputStream js(); List<UiView> views(); InputStream resource(String viewId, String path); UiMessageHandlerFactory messageHandlerFactory(); UiTopoOverlayFactory topoOverlayFactory(); UiTopoMapFactory topoMapFactory(); }
UiExtension { public List<UiView> views() { return isValid ? views : ImmutableList.of(); } private  UiExtension(ClassLoader cl, String path, List<UiView> views,
                        UiMessageHandlerFactory mhFactory,
                        UiTopoOverlayFactory toFactory,
                        UiTopoMapFactory tmFactory); InputStream css(); InputStream js(); List<UiView> views(); InputStream resource(String viewId, String path); UiMessageHandlerFactory messageHandlerFactory(); UiTopoOverlayFactory topoOverlayFactory(); UiTopoMapFactory topoMapFactory();  }