@Test void testRemove() { DefaultWebApplicationExtensionContext context = new DefaultWebApplicationExtensionContext(); DefaultWebApplication webApplication = new DefaultWebApplication(); context.add(Test3Extension.class); context.configure(webApplication); webApplication.initialize(); assertNull(webApplication.getAttribute(TestInitializer.class.getName())); }
@Override public void remove(Class<? extends WebApplicationExtension> extension) { if (extensionClasses.contains(extension)) { int index = extensionClasses.indexOf(extension); extensionClasses.remove(index); extensions.remove(index); } }
DefaultWebApplicationExtensionContext implements WebApplicationExtensionContext { @Override public void remove(Class<? extends WebApplicationExtension> extension) { if (extensionClasses.contains(extension)) { int index = extensionClasses.indexOf(extension); extensionClasses.remove(index); extensions.remove(index); } } }
DefaultWebApplicationExtensionContext implements WebApplicationExtensionContext { @Override public void remove(Class<? extends WebApplicationExtension> extension) { if (extensionClasses.contains(extension)) { int index = extensionClasses.indexOf(extension); extensionClasses.remove(index); extensions.remove(index); } } DefaultWebApplicationExtensionContext(); }
DefaultWebApplicationExtensionContext implements WebApplicationExtensionContext { @Override public void remove(Class<? extends WebApplicationExtension> extension) { if (extensionClasses.contains(extension)) { int index = extensionClasses.indexOf(extension); extensionClasses.remove(index); extensions.remove(index); } } DefaultWebApplicationExtensionContext(); @Override void add(Class<? extends WebApplicationExtension> extension); @Override void add(WebApplicationExtension extension); void configure(WebApplication webApplication); @Override void remove(Class<? extends WebApplicationExtension> extension); }
DefaultWebApplicationExtensionContext implements WebApplicationExtensionContext { @Override public void remove(Class<? extends WebApplicationExtension> extension) { if (extensionClasses.contains(extension)) { int index = extensionClasses.indexOf(extension); extensionClasses.remove(index); extensions.remove(index); } } DefaultWebApplicationExtensionContext(); @Override void add(Class<? extends WebApplicationExtension> extension); @Override void add(WebApplicationExtension extension); void configure(WebApplication webApplication); @Override void remove(Class<? extends WebApplicationExtension> extension);  }