@Test void testExtensionHandling() throws Exception { EmbeddedPiranha piranha = new EmbeddedPiranhaBuilder() .extension(TestExtension.class) .buildAndStart(); assertNotNull(piranha.getWebApplication().getAttribute(TestInitializer.class.getName())); }
public WebApplication getWebApplication() { return webApplication; }
EmbeddedPiranha implements Piranha { public WebApplication getWebApplication() { return webApplication; } }
EmbeddedPiranha implements Piranha { public WebApplication getWebApplication() { return webApplication; } EmbeddedPiranha(); }
EmbeddedPiranha implements Piranha { public WebApplication getWebApplication() { return webApplication; } EmbeddedPiranha(); EmbeddedPiranha destroy(); @Override String getVersion(); WebApplication getWebApplication(); EmbeddedPiranha initialize(); void service(ServletRequest servletRequest, ServletResponse servletResponse); EmbeddedPiranha start(); EmbeddedPiranha stop(); }
EmbeddedPiranha implements Piranha { public WebApplication getWebApplication() { return webApplication; } EmbeddedPiranha(); EmbeddedPiranha destroy(); @Override String getVersion(); WebApplication getWebApplication(); EmbeddedPiranha initialize(); void service(ServletRequest servletRequest, ServletResponse servletResponse); EmbeddedPiranha start(); EmbeddedPiranha stop();  }