Author: rsearls
Date: 2015-01-07 20:41:35 -0500 (Wed, 07 Jan 2015)
New Revision: 19340
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java
Log:
switch to JBossWSTestHelper.writeToFile usage
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java
===================================================================
---
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java 2015-01-08
01:36:54 UTC (rev 19339)
+++
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java 2015-01-08
01:41:35 UTC (rev 19340)
@@ -70,7 +70,7 @@
.addClass(org.jboss.test.ws.jaxws.samples.eardeployment.EJB3Bean.class)
.addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/eardeployment/WEB-INF/wsdl/Endpoint.wsdl"),
"wsdl/Endpoint.wsdl")
.addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/eardeployment/WEB-INF/wsdl/TestService.xsd"),
"wsdl/TestService.xsd");
- writeToDisk(archive1);
+ JBossWSTestHelper.writeToFile(archive1);
WebArchive archive2 = ShrinkWrap.create(WebArchive.class,
"jaxws-samples-eardeployment-pojo.war");
archive2
@@ -82,7 +82,7 @@
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/eardeployment/WEB-INF/wsdl/Endpoint.wsdl"),
"wsdl/Endpoint.wsdl")
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/eardeployment/WEB-INF/wsdl/TestService.xsd"),
"wsdl/TestService.xsd")
.setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/eardeployment/WEB-INF/web.xml"));
- writeToDisk(archive2);
+ JBossWSTestHelper.writeToFile(archive2);
EnterpriseArchive archive = ShrinkWrap.create(EnterpriseArchive.class,
"jaxws-samples-eardeployment.ear");
archive
@@ -93,12 +93,6 @@
return archive;
}
- private static void writeToDisk(Archive archive)
- {
- File file = new File(JBossWSTestHelper.getTestArchiveDir(), archive.getName());
- archive.as(ZipExporter.class).exportTo(file, true);
- }
-
@Test
@RunAsClient
public void testEJB3Endpoint() throws Exception
Show replies by date