Author: asoldano
Date: 2014-06-25 13:07:43 -0400 (Wed, 25 Jun 2014)
New Revision: 18765
Added:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/DeploymentArchives.java
Modified:
stack/cxf/trunk/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-samples-jaxws.xml
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefClientTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefEJBTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefServletTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webservice/WebServiceEJB3TestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webservice/WebServiceJSETestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/management/recording/MemoryBufferRecorderTestCase.java
Log:
[JBWS-3711] WIP
Modified:
stack/cxf/trunk/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
===================================================================
---
stack/cxf/trunk/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2014-06-25
13:22:17 UTC (rev 18764)
+++
stack/cxf/trunk/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2014-06-25
17:07:43 UTC (rev 18765)
@@ -444,7 +444,7 @@
sb.append(dep.writeToFile().getName());
sb.append(" ");
}
- return sb.toString();
+ return sb.toString().trim();
}
public static abstract class WarDeployment extends BaseDeployment<WebArchive>
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-samples-jaxws.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-samples-jaxws.xml 2014-06-25
13:22:17 UTC (rev 18764)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-samples-jaxws.xml 2014-06-25
17:07:43 UTC (rev 18765)
@@ -50,7 +50,7 @@
</fileset>
</jar>
- <!-- jaxws-samples-serviceref -->
+ <!-- jaxws-samples-serviceref
<war
warfile="${tests.output.dir}/test-libs/jaxws-samples-serviceref.war"
webxml="${tests.output.dir}/test-resources/jaxws/samples/serviceref/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
<include
name="org/jboss/test/ws/jaxws/samples/serviceref/EndpointImpl.class"/>
@@ -104,51 +104,8 @@
<include name="permissions.xml"/>
<include name="wsdl/**"/>
</metainf>
- </jar>
+ </jar>-->
- <!-- jaxws-samples-webservice -->
- <war
warfile="${tests.output.dir}/test-libs/jaxws-samples-webservice01-jse.war"
webxml="${tests.output.dir}/test-resources/jaxws/samples/webservice/WEB-INF01/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/samples/webservice/JSEBean01.class"/>
- </classes>
- </war>
- <war
warfile="${tests.output.dir}/test-libs/jaxws-samples-webservice02-jse.war"
webxml="${tests.output.dir}/test-resources/jaxws/samples/webservice/WEB-INF02/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/samples/webservice/JSEBean02.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/samples/webservice/WEB-INF02">
- <include name="wsdl/**"/>
- </webinf>
- </war>
- <war
warfile="${tests.output.dir}/test-libs/jaxws-samples-webservice03-jse.war"
webxml="${tests.output.dir}/test-resources/jaxws/samples/webservice/WEB-INF03/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/samples/webservice/JSEBean03.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webservice/EndpointInterface03.class"/>
- </classes>
- </war>
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-samples-webservice01-ejb3.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/samples/webservice/EJB3Bean01.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webservice/EJB3RemoteInterface.class"/>
- </fileset>
- </jar>
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-samples-webservice02-ejb3.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/samples/webservice/EJB3Bean02.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webservice/EJB3RemoteInterface.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/samples/webservice/META-INF02">
- <include name="wsdl/**"/>
- </metainf>
- </jar>
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-samples-webservice03-ejb3.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/samples/webservice/EJB3Bean03.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webservice/EJB3RemoteInterface.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webservice/EndpointInterface03.class"/>
- </fileset>
- </jar>
-
<!-- jaxws-samples-webserviceref -->
<war
warfile="${tests.output.dir}/test-libs/jaxws-samples-webserviceref.war"
webxml="${tests.output.dir}/test-resources/jaxws/samples/webserviceref/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
@@ -227,17 +184,6 @@
</webinf>
</war>
- <!-- management-recording-as7.jar -->
- <jar
destfile="${tests.output.dir}/test-libs/management-recording-as7.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/management/recording/Endpoint.class"/>
- <include
name="org/jboss/test/ws/management/recording/EndpointWithConfigImpl.class"/>
- </fileset>
- <manifest>
- <attribute name="Dependencies"
value="org.jboss.logging"/>
- </manifest>
- </jar>
-
<!-- Please add alphabetically -->
</target>
Added:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/DeploymentArchives.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/DeploymentArchives.java
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/DeploymentArchives.java 2014-06-25
17:07:43 UTC (rev 18765)
@@ -0,0 +1,142 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2014, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.serviceref;
+
+import java.io.File;
+
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.wsf.test.JBossWSTestHelper;
+
+public final class DeploymentArchives
+{
+ private final String server;
+
+ private final String appclient;
+
+ private final String appclientEar;
+
+ private final String ejbClient;
+
+ private final String servletClient;
+
+
+ private static final DeploymentArchives me = new DeploymentArchives();
+
+ public static String getServerArchiveFilename() {
+ return me.server;
+ }
+
+ public static String getAppclientJarArchiveFilename() {
+ return me.appclient;
+ }
+
+ public static String getAppclientEarArchiveFilename() {
+ return me.appclientEar;
+ }
+
+ public static String getEJBClientArchiveFilename() {
+ return me.ejbClient;
+ }
+
+ public static String getServletClientArchiveFilename() {
+ return me.servletClient;
+ }
+
+ private DeploymentArchives()
+ {
+ server = JBossWSTestHelper.writeToFile(new
JBossWSTestHelper.WarDeployment("jaxws-samples-serviceref.war")
+ {
+ {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.serviceref.Endpoint.class)
+
.addClass(org.jboss.test.ws.jaxws.samples.serviceref.EndpointImpl.class)
+
.addClass(org.jboss.test.ws.jaxws.samples.serviceref.EndpointService.class)
+ .setWebXML(
+ new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/serviceref/WEB-INF/web.xml"));
+ }
+ });
+ appclient = JBossWSTestHelper.writeToFile(new
JBossWSTestHelper.JarDeployment("jaxws-samples-serviceref-appclient.jar")
+ {
+ {
+ archive
+ .setManifest(
+ new StringAsset("Manifest-Version: 1.0\n"
+ + "main-class:
org.jboss.test.ws.jaxws.samples.serviceref.ApplicationClient\n"))
+
.addClass(org.jboss.test.ws.jaxws.samples.serviceref.ApplicationClient.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.serviceref.Endpoint.class)
+
.addClass(org.jboss.test.ws.jaxws.samples.serviceref.EndpointService.class)
+ .addAsManifestResource(
+ new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/samples/serviceref/META-INF/application-client.xml"),
"application-client.xml")
+ .addAsManifestResource(
+ new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/samples/serviceref/META-INF/wsdl/Endpoint.wsdl"),
"wsdl/Endpoint.wsdl");
+ }
+ });
+ appclientEar = JBossWSTestHelper.writeToFile(new
JBossWSTestHelper.JarDeployment("jaxws-samples-serviceref-appclient.ear")
+ {
+ {
+ archive.addManifest().addAsResource(new
File(JBossWSTestHelper.getTestArchiveDir(),
"jaxws-samples-serviceref-appclient.jar"));
+ }
+ });
+ ejbClient = JBossWSTestHelper.writeToFile(new
JBossWSTestHelper.JarDeployment("jaxws-samples-serviceref-ejbclient.jar")
+ {
+ {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.serviceref.EJBClient.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.serviceref.EJBRemote.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.serviceref.Endpoint.class)
+
.addClass(org.jboss.test.ws.jaxws.samples.serviceref.EndpointService.class)
+ .addAsManifestResource(
+ new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/samples/serviceref/META-INF/ejb-jar.xml"), "ejb-jar.xml")
+ .addAsManifestResource(
+ new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/samples/serviceref/META-INF/permissions.xml"),
"permissions.xml")
+ .addAsManifestResource(
+ new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/samples/serviceref/META-INF/wsdl/Endpoint.wsdl"),
"wsdl/Endpoint.wsdl");
+ }
+ });
+ servletClient = JBossWSTestHelper.writeToFile(new
JBossWSTestHelper.WarDeployment("jaxws-samples-serviceref-servlet-client.war")
+ {
+ {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.serviceref.Endpoint.class)
+
.addClass(org.jboss.test.ws.jaxws.samples.serviceref.EndpointService.class)
+
.addClass(org.jboss.test.ws.jaxws.samples.serviceref.ServletClient.class)
+ .addAsWebInfResource(
+ new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/samples/serviceref/META-INF/wsdl/Endpoint.wsdl"),
"wsdl/Endpoint.wsdl")
+ .addAsWebInfResource(
+ new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/samples/serviceref/servlet-client/WEB-INF/jboss-web.xml"),
"jboss-web.xml")
+ .setWebXML(
+ new File(JBossWSTestHelper.getTestResourcesDir()
+ +
"/jaxws/samples/serviceref/servlet-client/WEB-INF/web.xml"));
+ }
+ });
+ }
+}
Property changes on:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/DeploymentArchives.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefClientTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefClientTestCase.java 2014-06-25
13:22:17 UTC (rev 18764)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefClientTestCase.java 2014-06-25
17:07:43 UTC (rev 18765)
@@ -48,8 +48,7 @@
public static Test suite()
{
- String archives = "jaxws-samples-serviceref.war";
- return new JBossWSTestSetup(ServiceRefClientTestCase.class, archives);
+ return new JBossWSTestSetup(ServiceRefClientTestCase.class,
DeploymentArchives.getServerArchiveFilename());
}
public void testWSDLAccess() throws Exception
@@ -77,7 +76,7 @@
try
{
final OutputStream appclientOS = new ByteArrayOutputStream();
-
JBossWSTestHelper.deployAppclient("jaxws-samples-serviceref-appclient.ear#jaxws-samples-serviceref-appclient.jar",
appclientOS, "Hello World!");
+
JBossWSTestHelper.deployAppclient(DeploymentArchives.getAppclientEarArchiveFilename() +
"#" + DeploymentArchives.getAppclientJarArchiveFilename(), appclientOS,
"Hello World!");
// wait till appclient stops
String appclientLog = appclientOS.toString();
while (!appclientLog.contains("stopped in")) {
@@ -92,7 +91,7 @@
}
finally
{
-
JBossWSTestHelper.undeployAppclient("jaxws-samples-serviceref-appclient.ear#jaxws-samples-serviceref-appclient.jar",
false);
+
JBossWSTestHelper.undeployAppclient(DeploymentArchives.getAppclientEarArchiveFilename() +
"#" + DeploymentArchives.getAppclientJarArchiveFilename(), false);
}
}
}
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefEJBTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefEJBTestCase.java 2014-06-25
13:22:17 UTC (rev 18764)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefEJBTestCase.java 2014-06-25
17:07:43 UTC (rev 18765)
@@ -47,8 +47,7 @@
public static Test suite()
{
- final String archives =
"jaxws-samples-serviceref.war,jaxws-samples-serviceref-ejbclient.jar";
- return new JBossWSTestSetup(ServiceRefEJBTestCase.class, archives);
+ return new JBossWSTestSetup(ServiceRefEJBTestCase.class,
DeploymentArchives.getServerArchiveFilename() + "," +
DeploymentArchives.getEJBClientArchiveFilename());
}
public void testWSDLAccess() throws Exception
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefServletTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefServletTestCase.java 2014-06-25
13:22:17 UTC (rev 18764)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefServletTestCase.java 2014-06-25
17:07:43 UTC (rev 18765)
@@ -46,8 +46,7 @@
public static Test suite()
{
- String archives =
"jaxws-samples-serviceref.war,jaxws-samples-serviceref-servlet-client.war";
- return new JBossWSTestSetup(ServiceRefServletTestCase.class, archives);
+ return new JBossWSTestSetup(ServiceRefServletTestCase.class,
DeploymentArchives.getServerArchiveFilename() + "," +
DeploymentArchives.getServletClientArchiveFilename());
}
public void testWSDLAccess() throws Exception
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webservice/WebServiceEJB3TestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webservice/WebServiceEJB3TestCase.java 2014-06-25
13:22:17 UTC (rev 18764)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webservice/WebServiceEJB3TestCase.java 2014-06-25
17:07:43 UTC (rev 18765)
@@ -21,8 +21,11 @@
*/
package org.jboss.test.ws.jaxws.samples.webservice;
+import java.io.File;
+
import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSTestHelper;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -34,6 +37,32 @@
*/
public class WebServiceEJB3TestCase extends WebServiceBase
{
+ static {
+ JBossWSTestHelper.writeToFile(new
JBossWSTestHelper.JarDeployment("jaxws-samples-webservice02-ejb3.jar") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.webservice.EJB3Bean02.class)
+
.addClass(org.jboss.test.ws.jaxws.samples.webservice.EJB3RemoteInterface.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/webservice/META-INF02/wsdl/TestService.wsdl"),
"wsdl/TestService.wsdl");
+ }
+ });
+ JBossWSTestHelper.writeToFile(new
JBossWSTestHelper.JarDeployment("jaxws-samples-webservice01-ejb3.jar") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.webservice.EJB3Bean01.class)
+
.addClass(org.jboss.test.ws.jaxws.samples.webservice.EJB3RemoteInterface.class);
+ }
+ });
+ JBossWSTestHelper.writeToFile(new
JBossWSTestHelper.JarDeployment("jaxws-samples-webservice03-ejb3.jar") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.webservice.EJB3Bean03.class)
+
.addClass(org.jboss.test.ws.jaxws.samples.webservice.EJB3RemoteInterface.class)
+
.addClass(org.jboss.test.ws.jaxws.samples.webservice.EndpointInterface03.class);
+ }
+ });
+ }
+
public static Test suite()
{
return new JBossWSTestSetup(WebServiceEJB3TestCase.class, "");
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webservice/WebServiceJSETestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webservice/WebServiceJSETestCase.java 2014-06-25
13:22:17 UTC (rev 18764)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webservice/WebServiceJSETestCase.java 2014-06-25
17:07:43 UTC (rev 18765)
@@ -21,8 +21,11 @@
*/
package org.jboss.test.ws.jaxws.samples.webservice;
+import java.io.File;
+
import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSTestHelper;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -34,6 +37,32 @@
*/
public class WebServiceJSETestCase extends WebServiceBase
{
+ static {
+ JBossWSTestHelper.writeToFile(new
JBossWSTestHelper.WarDeployment("jaxws-samples-webservice03-jse.war") { {
+ archive
+ .addManifest()
+
.addClass(org.jboss.test.ws.jaxws.samples.webservice.EndpointInterface03.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.webservice.JSEBean03.class)
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/webservice/WEB-INF03/web.xml"));
+ }
+ });
+ JBossWSTestHelper.writeToFile(new
JBossWSTestHelper.WarDeployment("jaxws-samples-webservice02-jse.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.webservice.JSEBean02.class)
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/webservice/WEB-INF02/wsdl/TestService.wsdl"),
"wsdl/TestService.wsdl")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/webservice/WEB-INF02/web.xml"));
+ }
+ });
+ JBossWSTestHelper.writeToFile(new
JBossWSTestHelper.WarDeployment("jaxws-samples-webservice01-jse.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.webservice.JSEBean01.class)
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/webservice/WEB-INF01/web.xml"));
+ }
+ });
+ }
+
public static Test suite()
{
return new JBossWSTestSetup(WebServiceJSETestCase.class, "");
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/management/recording/MemoryBufferRecorderTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/management/recording/MemoryBufferRecorderTestCase.java 2014-06-25
13:22:17 UTC (rev 18764)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/management/recording/MemoryBufferRecorderTestCase.java 2014-06-25
17:07:43 UTC (rev 18765)
@@ -32,6 +32,7 @@
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.ws.api.monitoring.Record;
import org.jboss.ws.api.monitoring.RecordFilter;
import org.jboss.ws.common.monitoring.AndFilter;
@@ -52,6 +53,17 @@
private final String endpointURL = "http://" + getServerHost() +
":8080/management-recording/EndpointImpl";
private final String targetNS =
"http://recording.management.ws.test.jboss.org/";
private String endpointObjectName;
+
+ static {
+ JBossWSTestHelper.writeToFile(new
JBossWSTestHelper.JarDeployment("management-recording-as7.jar") { {
+ archive
+ .setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ + "Dependencies: org.jboss.logging\n"))
+ .addClass(org.jboss.test.ws.management.recording.Endpoint.class)
+
.addClass(org.jboss.test.ws.management.recording.EndpointWithConfigImpl.class);
+ }
+ });
+ }
@Override
protected void setUp() throws Exception