wars[0] = ShrinkWrap.create(WebArchive.class, "deployment0.war");
wars[0].addClass(SimpleServlet.class);
wars[0].addAsWebResource(new StringAsset("Version0"), "page.html");
String tempDir = System.getProperty("java.io.tmpdir");
warFiles[0] = new File(tempDir + File.separator + "deployment0.war");
new ZipExporterImpl(wars[0]).exportTo(warFiles[0], true);
// deployment2 - correct
wars[1] = ShrinkWrap.create(WebArchive.class, "deployment1.war");
wars[1].addClass(SimpleServlet.class);
wars[1].addAsWebResource(new StringAsset("Version1"), "page.html");
warFiles[1] = new File(tempDir + File.separator + "deployment1.war");
new ZipExporterImpl(wars[1]).exportTo(warFiles[1], true);
// deployment3 - malformed
wars[2] = ShrinkWrap.create(WebArchive.class, "deployment2.war");
wars[2].addClass(SimpleServlet.class);
wars[2].addAsWebInfResource(new StringAsset("Malformed"), "web.xml");
warFiles[2] = new File(tempDir + File.separator + "deployment2.war");
new ZipExporterImpl(wars[2]).exportTo(warFiles[2], true);
AbstractCliTestBase.initCLI();
}