@Deployment public static WebArchive createDeployment() { // The servlet protocol relies on the war being called test.war WebArchive war = ShrinkWrapUtils.createWebArchive("jsf-example.war", JSFTestCase.class); war.addWebResource(EmptyAsset.INSTANCE, "beans.xml") .addManifestResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml")) .add( new Asset() { @Override public InputStream openStream() { try { return new ByteArrayInputStream( "org.jboss.arquillian.junit.JUnitTestRunner".getBytes("UTF-8")); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } } }, "META-INF/services/" + TestRunner.class.getName()) .addManifestResource(jsfunitFacesConfigXml(), "faces-config.xml") .addManifestResource("arquillian/web-fragment.xml", "web-fragment.xml"); // System.out.println(war.toString(true)); // for debugging return war; }
@Deployment(testable = false) public static Archive<?> getDeployment() { return ShrinkWrapUtils.createWebArchive( "demos/ws-example.war", EndpointImpl.class.getPackage()); }