@Test public void testGetStyles() throws Exception { List<URI> uris = underTest.getStyles(); assertThat(uris, is(asList(new URI("http: new URI("http: new URI("http: new URI("http: new URI("http: new URI("http: }
@VisibleForTesting List<URI> getStyles() { List<URI> styles = Lists.newArrayList(); styles.add(uri(mode("resources/loading-{mode}.css"))); styles.add(uri(mode("resources/baseapp-{mode}.css"))); styles.addAll(getExtJsStyles()); List<URI> resources = pluginDescriptors.stream() .map(UiPluginDescriptor::getStyles) .flatMap(Collection::stream) .map(this::relativeToAbsoluteUri) .collect(toList()); styles.addAll(resources); return styles; }
RaptureWebResourceBundle extends ComponentSupport implements WebResourceBundle { @VisibleForTesting List<URI> getStyles() { List<URI> styles = Lists.newArrayList(); styles.add(uri(mode("resources/loading-{mode}.css"))); styles.add(uri(mode("resources/baseapp-{mode}.css"))); styles.addAll(getExtJsStyles()); List<URI> resources = pluginDescriptors.stream() .map(UiPluginDescriptor::getStyles) .flatMap(Collection::stream) .map(this::relativeToAbsoluteUri) .collect(toList()); styles.addAll(resources); return styles; } }
RaptureWebResourceBundle extends ComponentSupport implements WebResourceBundle { @VisibleForTesting List<URI> getStyles() { List<URI> styles = Lists.newArrayList(); styles.add(uri(mode("resources/loading-{mode}.css"))); styles.add(uri(mode("resources/baseapp-{mode}.css"))); styles.addAll(getExtJsStyles()); List<URI> resources = pluginDescriptors.stream() .map(UiPluginDescriptor::getStyles) .flatMap(Collection::stream) .map(this::relativeToAbsoluteUri) .collect(toList()); styles.addAll(resources); return styles; } @Inject  RaptureWebResourceBundle(final ApplicationVersion applicationVersion,
                                  final Provider<HttpServletRequest> servletRequestProvider,
                                  final Provider<StateComponent> stateComponentProvider,
                                  final TemplateHelper templateHelper,
                                  final List<UiPluginDescriptor> pluginDescriptors,
                                  final List<org.sonatype.nexus.rapture.UiPluginDescriptor> extJsPluginDescriptors); }
RaptureWebResourceBundle extends ComponentSupport implements WebResourceBundle { @VisibleForTesting List<URI> getStyles() { List<URI> styles = Lists.newArrayList(); styles.add(uri(mode("resources/loading-{mode}.css"))); styles.add(uri(mode("resources/baseapp-{mode}.css"))); styles.addAll(getExtJsStyles()); List<URI> resources = pluginDescriptors.stream() .map(UiPluginDescriptor::getStyles) .flatMap(Collection::stream) .map(this::relativeToAbsoluteUri) .collect(toList()); styles.addAll(resources); return styles; } @Inject  RaptureWebResourceBundle(final ApplicationVersion applicationVersion,
                                  final Provider<HttpServletRequest> servletRequestProvider,
                                  final Provider<StateComponent> stateComponentProvider,
                                  final TemplateHelper templateHelper,
                                  final List<UiPluginDescriptor> pluginDescriptors,
                                  final List<org.sonatype.nexus.rapture.UiPluginDescriptor> extJsPluginDescriptors); @Override List<WebResource> getResources(); }
RaptureWebResourceBundle extends ComponentSupport implements WebResourceBundle { @VisibleForTesting List<URI> getStyles() { List<URI> styles = Lists.newArrayList(); styles.add(uri(mode("resources/loading-{mode}.css"))); styles.add(uri(mode("resources/baseapp-{mode}.css"))); styles.addAll(getExtJsStyles()); List<URI> resources = pluginDescriptors.stream() .map(UiPluginDescriptor::getStyles) .flatMap(Collection::stream) .map(this::relativeToAbsoluteUri) .collect(toList()); styles.addAll(resources); return styles; } @Inject  RaptureWebResourceBundle(final ApplicationVersion applicationVersion,
                                  final Provider<HttpServletRequest> servletRequestProvider,
                                  final Provider<StateComponent> stateComponentProvider,
                                  final TemplateHelper templateHelper,
                                  final List<UiPluginDescriptor> pluginDescriptors,
                                  final List<org.sonatype.nexus.rapture.UiPluginDescriptor> extJsPluginDescriptors); @Override List<WebResource> getResources();  }