Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 307393 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.gemini.web.test/src/test/java/org/eclipse/gemini/web/test/tomcat/TomcatServletContainerTests.java (-3 / +7 lines)
Lines 408-415 public class TomcatServletContainerTests { Link Here
408
    public void testInstallWebAppDir() throws Exception {
408
    public void testInstallWebAppDir() throws Exception {
409
        //Create web app dir
409
        //Create web app dir
410
        File webAppDir = new File("target/test-classes/simple-web-app-dir");
410
        File webAppDir = new File("target/test-classes/simple-web-app-dir");
411
        File indexHtml = new File(webAppDir, "index.html");
411
        File indexHtml = new File(webAppDir, "index.jsp");
412
        createFileWithContent(indexHtml, "Hello World!");
412
        createFileWithContent(
413
            indexHtml,
414
            "Hello World!\n" +
415
            "config.getServletContext().getResourcePaths(/): <%=config.getServletContext().getResourcePaths(\"/\")%>\n" +
416
            "config.getServletContext().getRealPath(/): <%=config.getServletContext().getRealPath(\"/\")%>");
413
417
414
        Bundle bundle = this.bundleContext.installBundle(LOCATION_PREFIX + webAppDir.getAbsolutePath() + "?Web-ContextPath=/simple-web-app-dir");
418
        Bundle bundle = this.bundleContext.installBundle(LOCATION_PREFIX + webAppDir.getAbsolutePath() + "?Web-ContextPath=/simple-web-app-dir");
415
        bundle.start();
419
        bundle.start();
Lines 417-423 public class TomcatServletContainerTests { Link Here
417
        WebApplicationHandle handle = this.container.createWebApplication("/simple-web-app-dir", bundle);
421
        WebApplicationHandle handle = this.container.createWebApplication("/simple-web-app-dir", bundle);
418
        this.container.startWebApplication(handle);
422
        this.container.startWebApplication(handle);
419
        try {
423
        try {
420
            validateURL("http://localhost:8080/simple-web-app-dir/index.html");
424
            validateURL("http://localhost:8080/simple-web-app-dir/index.jsp");
421
        } finally {
425
        } finally {
422
            this.container.stopWebApplication(handle);
426
            this.container.stopWebApplication(handle);
423
            bundle.uninstall();
427
            bundle.uninstall();

Return to bug 307393