use of org.jboss.shrinkwrap.impl.base.exporter.zip.ZipExporterImpl in project eap-additional-testsuite by jboss-set.
the class DeploySingleServerGroupTestCase method testRedeploy.
public void testRedeploy() throws Exception {
// check we have original deployment
checkURL("/SimpleServlet/page.html", "Version1", serverGroups[0]);
// update the deployment - replace page.html
war = ShrinkWrap.create(WebArchive.class, "SimpleServlet.war");
war.addClass(SimpleServlet.class);
war.addAsWebResource(new StringAsset("Version2"), "page.html");
new ZipExporterImpl(war).exportTo(warFile, true);
// redeploy to group servers
assertFalse(cli.sendLine("deploy --server-groups=" + serverGroups[0] + " " + warFile.getAbsolutePath(), true));
// force redeploy
cli.sendLine("deploy " + warFile.getAbsolutePath() + " --force");
// check that new version is running
checkURL("/SimpleServlet/page.html", "Version2", serverGroups[0]);
}
Aggregations