ConfigurableModule implements Module { @Override public Set<Class<? extends Annotation>> getRestAnnotationClasses() { if (restAnnotationClasses != null) return SetX.fromIterable(concat(restAnnotationClasses, extract(() -> Module.super.getRestAnnotationClasses()))); return Module.super.getRestAnnotationClasses(); }  ConfigurableModule withResourceConfigManager(Consumer<JaxRsProvider<T>> resourceConfigManager); ConfigurableModule withServerConfigManager(Consumer<WebServerProvider<?>> serverConfigManager); @Override Set<Object> getJaxRsResourceObjects(); @Override Consumer<WebServerProvider<T>> getServerConfigManager(); @Override Consumer<JaxRsProvider<T>> getResourceConfigManager(); @Override List<String> getDefaultJaxRsPackages(); @Override Set<Class<?>> getRestResourceClasses(); @Override Set<Class<? extends Annotation>> getRestAnnotationClasses(); @Override List<Class<?>> getDefaultResources(); @Override List<ServletContextListener> getListeners(ServerData data); @Override List<ServletRequestListener> getRequestListeners(ServerData data); @Override Map<String, Filter> getFilters(ServerData data); @Override Map<String, Servlet> getServlets(ServerData data); @Override String getJaxWsRsApplication(); @Override String getProviders(); @Override String getContext(); @Override Set<Class<?>> getSpringConfigurationClasses(); @Override Map<String, Object> getServerProperties();  }
@Test public void testGetRestAnnotationClassesResetAll() { assertThat(module.withResetAll(true).getRestAnnotationClasses(),is(resourceAnnotationClasses)); }
@Test public void testGetRestAnnotationClasses() { assertThat(module.getRestAnnotationClasses(),hasItem(Rest.class)); }
@Test public void testGetRestAnnotationClassesUnchanged() { assertThat(unchanged.getRestAnnotationClasses(),is(m.getRestAnnotationClasses())); }
@Test public void testWithResourceAnnotationClasses() { System.out.println(this.resourceAnnotationClasses); System.out.println(unchanged.withRestAnnotationClasses(this.resourceAnnotationClasses).getRestAnnotationClasses()); assertThat(unchanged.withRestAnnotationClasses(this.resourceAnnotationClasses).getRestAnnotationClasses(),is(module.getRestAnnotationClasses())); }