Package org.ops4j.pax.exam

Examples of org.ops4j.pax.exam.TestContainerException


            StreamUtils.copyStream(stream, new FileOutputStream(warFile), true);
            tomcat.addWebapp("/" + applicationName, warFile.getAbsolutePath());
            deployed.push(applicationName);
        }
        catch (IOException exc) {
            throw new TestContainerException("Problem deploying " + applicationName, exc);
        }
        catch (ServletException exc) {
            throw new TestContainerException("Problem deploying " + applicationName, exc);
        }
    }
View Full Code Here


        try {
            tomcat.stop();
            tomcat.destroy();
        }
        catch (LifecycleException exc) {
            throw new TestContainerException(exc);
        }
    }
View Full Code Here

            tomcat.start();
            testDirectory.setAccessPoint(new URI("http://localhost:" + httpPort
                + "/Pax-Exam-Probe/"));
        }
        catch (URISyntaxException exc) {
            new TestContainerException(exc);
        }
        catch (LifecycleException exc) {
            new TestContainerException(exc);
        }
        return this;
    }
View Full Code Here

            deployer.deploy(tempFile, "--name", PROBE_APPLICATION_NAME, "--contextroot",
                PROBE_APPLICATION_NAME);
            deployed.push(PROBE_APPLICATION_NAME);
        }
        catch (GlassFishException exc) {
            throw new TestContainerException(exc);
        }
        catch (IOException exc) {
            throw new TestContainerException(exc);
        }
        return -1;
    }
View Full Code Here

            deployer.deploy(uri, "--name", applicationName, "--contextroot", applicationName);
            deployed.push(applicationName);
            LOG.info("deployed module {}", url);
        }
        catch (IOException exc) {
            throw new TestContainerException(exc);
        }
        catch (GlassFishException exc) {
            throw new TestContainerException(exc);
        }
        catch (URISyntaxException exc) {
            throw new TestContainerException(exc);
        }
    }
View Full Code Here

        undeployModules();
        try {
            glassFish.stop();
        }
        catch (GlassFishException exc) {
            throw new TestContainerException(exc);
        }
    }
View Full Code Here

                String applicationName = deployed.pop();
                deployer.undeploy(applicationName);
            }
        }
        catch (GlassFishException exc) {
            throw new TestContainerException(exc);
        }
    }
View Full Code Here

                + "/Pax-Exam-Probe/"));

            deployModules();
        }
        catch (GlassFishException e) {
            throw new TestContainerException("Problem starting test container.", e);
        }
        catch (URISyntaxException e) {
            throw new TestContainerException("Problem starting test container.", e);
        }
        return this;
    }
View Full Code Here

        try {
            glassFish.getDeployer().undeploy(warProbe);
            this.warProbe = null;
        }
        catch (GlassFishException exc) {
            throw new TestContainerException(exc);
        }       
    }
View Full Code Here

         * classloaders. For this reason, we only take the stack trace and wrap it in a
         * TestContainerException.
         */
        ObjectOutputStream oos = new ObjectOutputStream(os);
        for (Failure failure : failures) {
            Exception exc = new TestContainerException(failure.getTrace());
            oos.writeObject(exc);
        }
        if (failures.isEmpty()) {
            oos.writeObject("ok");
        }
View Full Code Here

TOP

Related Classes of org.ops4j.pax.exam.TestContainerException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.