JBossWS SVN: r19283 - stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2528.
by jbossws-commits@lists.jboss.org
Author: rsearls
Date: 2014-12-27 19:23:58 -0500 (Sat, 27 Dec 2014)
New Revision: 19283
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2528/JBWS2528TestCase.java
Log:
arquillian migration jbws2528 test
Modified: stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2528/JBWS2528TestCase.java
===================================================================
--- stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2528/JBWS2528TestCase.java 2014-12-27 22:19:06 UTC (rev 19282)
+++ stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2528/JBWS2528TestCase.java 2014-12-28 00:23:58 UTC (rev 19283)
@@ -33,6 +33,11 @@
import javax.xml.namespace.QName;
import org.jboss.wsf.test.JBossWSTest;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.container.test.api.RunAsClient;
+import org.jboss.arquillian.junit.Arquillian;
/**
* [JBWS-2528] Missing parameterOrder in portType/operation
@@ -42,6 +47,7 @@
* @author alessio.soldano(a)jboss.com
* @since 12-Mar-2009
*/
+(a)RunWith(Arquillian.class)
public class JBWS2528TestCase extends JBossWSTest
{
private static final String FS = System.getProperty("file.separator"); // '/' on unix, '\' on windows
@@ -65,8 +71,11 @@
TEST_DIR = createResourceFile("..").getAbsolutePath();
}
+ @Test
+ @RunAsClient
public void test() throws Exception
{
+ setUp();
File destDir = new File(TEST_DIR, "wsprovide" + FS + "java");
String absOutput = destDir.getAbsolutePath();
String command = JBOSS_HOME + FS + "bin" + FS + "wsprovide" + EXT + " -k -w -o " + absOutput + " --classpath " + CLASSES_DIR + " " + ENDPOINT_CLASS;
9 years, 3 months
JBossWS SVN: r19282 - stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3026.
by jbossws-commits@lists.jboss.org
Author: rsearls
Date: 2014-12-27 17:19:06 -0500 (Sat, 27 Dec 2014)
New Revision: 19282
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3026/JBWS3026TestCase.java
Log:
arquillian migration jbws3026 test
Modified: stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3026/JBWS3026TestCase.java
===================================================================
--- stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3026/JBWS3026TestCase.java 2014-12-27 21:35:21 UTC (rev 19281)
+++ stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3026/JBWS3026TestCase.java 2014-12-27 22:19:06 UTC (rev 19282)
@@ -29,7 +29,18 @@
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
-import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.container.test.api.RunAsClient;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.test.api.ArquillianResource;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.jboss.shrinkwrap.api.spec.JavaArchive;
+import org.jboss.arquillian.container.test.api.OperateOnDeployment;
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestHelper;
@@ -41,19 +52,26 @@
*
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
*/
+(a)RunWith(Arquillian.class)
public final class JBWS3026TestCase extends JBossWSTest
{
- public static BaseDeployment<?>[] createDeployments() {
- List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
- list.add(new JBossWSTestHelper.JarDeployment("jaxws-jbws3026-ejb.jar") { {
+ @ArquillianResource
+ private URL baseURL;
+
+ @Deployment(name = "dep-jar", testable = false, order=1)
+ public static JavaArchive createDeployment() {
+ JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "jaxws-jbws3026-ejb.jar");
archive
.addManifest()
.addClass(org.jboss.test.ws.jaxws.jbws3026.MyBean.class)
.addClass(org.jboss.test.ws.jaxws.jbws3026.MyBeanLocal.class)
.addClass(org.jboss.test.ws.jaxws.jbws3026.MyBeanRemote.class);
- }
- });
- list.add(new JBossWSTestHelper.WarDeployment("jaxws-jbws3026-web.war") { {
+ return archive;
+ }
+
+ @Deployment(name = "dep-war", testable = false, order=2)
+ public static WebArchive createDeployment1() {
+ WebArchive archive = ShrinkWrap.create(WebArchive.class, "jaxws-jbws3026-web.war");
archive
.addManifest()
.addClass(org.jboss.test.ws.jaxws.jbws3026.MyBeanRemote.class)
@@ -61,19 +79,15 @@
.addClass(org.jboss.test.ws.jaxws.jbws3026.MyServiceImpl.class)
.addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws3026/META-INF/permissions.xml"), "permissions.xml")
.setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws3026/WEB-INF/web.xml"));
- }
- });
- return list.toArray(new BaseDeployment<?>[list.size()]);
+ return archive;
}
- public static Test suite()
- {
- return new JBossWSTestSetup(JBWS3026TestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
- }
-
+ @Test
+ @RunAsClient
+ @OperateOnDeployment("dep-war")
public void testUsecase1WithoutSar() throws Exception
{
- String endpointAddress = "http://" + getServerHost() + ":8080/jaxws-jbws3026-web/MyService";
+ String endpointAddress = baseURL + "MyService";
QName serviceName = new QName("http://jbws3026.jaxws.ws.test.jboss.org/", "MyService");
Service service = Service.create(new URL(endpointAddress + "?wsdl"), serviceName);
MyService port = (MyService)service.getPort(MyService.class);
9 years, 3 months
JBossWS SVN: r19281 - stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2960.
by jbossws-commits@lists.jboss.org
Author: rsearls
Date: 2014-12-27 16:35:21 -0500 (Sat, 27 Dec 2014)
New Revision: 19281
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2960/JBWS2960TestCase.java
Log:
arquillian migration jbws2960 test
Modified: stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2960/JBWS2960TestCase.java
===================================================================
--- stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2960/JBWS2960TestCase.java 2014-12-27 21:28:00 UTC (rev 19280)
+++ stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2960/JBWS2960TestCase.java 2014-12-27 21:35:21 UTC (rev 19281)
@@ -34,6 +34,10 @@
import javax.xml.namespace.QName;
import junit.framework.Assert;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.jboss.arquillian.container.test.api.RunAsClient;
+import org.jboss.arquillian.junit.Arquillian;
import org.jboss.ws.api.util.DOMUtils;
import org.jboss.wsf.test.JBossWSTest;
@@ -45,6 +49,7 @@
*
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
*/
+(a)RunWith(Arquillian.class)
public class JBWS2960TestCase extends JBossWSTest
{
private static final QName WSAM_ACTION_QNAME = new QName("http://www.w3.org/2007/05/addressing/metadata", "Action");
@@ -84,8 +89,11 @@
</binding>
</definitions>
*/
+ @Test
+ @RunAsClient
public void testPolicyReference() throws Exception
{
+ setUp();
Definition wsdl = getWSDLDefinition(wsdlFile.getAbsolutePath());
List<?> definitionExtElements = wsdl.getExtensibilityElements();
QName serviceQName = new QName("http://foobar.org/", "AddNumbersService");
@@ -107,8 +115,11 @@
assertNotNull("NonAnonymousResponses element not found", nonAnonymousResponsesElement);
}
+ @Test
+ @RunAsClient
public void testOperations() throws Exception
{
+ setUp();
Definition wsdl = getWSDLDefinition(wsdlFile.getAbsolutePath());
PortType port = wsdl.getPortType(new QName("http://foobar.org/", "AddNumbers"));
Operation operation = null;
9 years, 3 months
JBossWS SVN: r19280 - stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3287.
by jbossws-commits@lists.jboss.org
Author: rsearls
Date: 2014-12-27 16:28:00 -0500 (Sat, 27 Dec 2014)
New Revision: 19280
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3287/JBWS3287TestCase.java
Log:
arquillian migration jbws3287 test
Modified: stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3287/JBWS3287TestCase.java
===================================================================
--- stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3287/JBWS3287TestCase.java 2014-12-27 21:08:00 UTC (rev 19279)
+++ stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3287/JBWS3287TestCase.java 2014-12-27 21:28:00 UTC (rev 19280)
@@ -29,7 +29,17 @@
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
-import junit.framework.Test;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.container.test.api.RunAsClient;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.test.api.ArquillianResource;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.jboss.shrinkwrap.api.spec.JavaArchive;
+import org.jboss.arquillian.container.test.api.OperateOnDeployment;
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestHelper;
@@ -44,13 +54,17 @@
* @author alessio.soldano(a)jboss.com
* @since 25-May-2012
*/
+(a)RunWith(Arquillian.class)
public class JBWS3287TestCase extends JBossWSTest
{
private static final String targetNS = "http://jbws3287.jaxws.ws.test.jboss.org/";
- public static BaseDeployment<?>[] createDeployments() {
- List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
- list.add(new JBossWSTestHelper.JarDeployment("jaxws-jbws3287-C.jar") { {
+ @ArquillianResource
+ private URL baseURL;
+
+ @Deployment(testable = false, name = "depC", order = 1)
+ public static JavaArchive createDeploymentC() {
+ JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "jaxws-jbws3287-C.jar");
archive
.addManifest()
.addClass(org.jboss.test.ws.jaxws.jbws3287.AuthorizationHandler.class)
@@ -62,9 +76,12 @@
.addAsResource("org/jboss/test/ws/jaxws/jbws3287/jaxws-handlers-server.xml")
.addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws3287/META-INF/jaxws-endpoint-config.xml"), "jaxws-endpoint-config.xml")
.addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws3287/META-INF/jboss-webservices.xml"), "jboss-webservices.xml");
- }
- });
- list.add(new JBossWSTestHelper.WarDeployment("jaxws-jbws3287-B.war") { {
+ return archive;
+ }
+
+ @Deployment(testable = false,name = "depB", order = 2)
+ public static WebArchive createDeploymentB() {
+ WebArchive archive = ShrinkWrap.create(WebArchive.class, "jaxws-jbws3287-B.war");
archive
.addManifest()
.addClass(org.jboss.test.ws.jaxws.jbws3287.AuthorizationHandler.class)
@@ -76,9 +93,12 @@
.addAsResource("org/jboss/test/ws/jaxws/jbws3287/jaxws-handlers-server.xml")
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws3287/WEB-INF/jaxws-endpoint-config.xml"), "jaxws-endpoint-config.xml")
.setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws3287/WEB-INF/web-B.xml"));
- }
- });
- list.add(new JBossWSTestHelper.WarDeployment("jaxws-jbws3287-A.war") { {
+ return archive;
+ }
+
+ @Deployment(testable = false, name = "depA", order = 3)
+ public static WebArchive createDeploymentA() {
+ WebArchive archive = ShrinkWrap.create(WebArchive.class, "jaxws-jbws3287-A.war");
archive
.addManifest()
.addClass(org.jboss.test.ws.jaxws.jbws3287.AuthorizationHandler.class)
@@ -91,26 +111,28 @@
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws3287/WEB-INF/jaxws-endpoint-config.xml"), "jaxws-endpoint-config.xml")
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws3287/WEB-INF/jboss-webservices.xml"), "jboss-webservices.xml")
.setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws3287/WEB-INF/web-A.xml"));
- }
- });
- return list.toArray(new BaseDeployment<?>[list.size()]);
+ return archive;
}
-
- public static Test suite()
- {
- return new JBossWSTestSetup(JBWS3287TestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
- }
+ @Test
+ @RunAsClient
+ @OperateOnDeployment("depA")
public void testJBossWebservicesXmlDD() throws Exception
{
runTestInternal("jaxws-jbws3287-A/TestService?wsdl");
}
-
+
+ @Test
+ @RunAsClient
+ @OperateOnDeployment("depB")
public void testWebXmlDD() throws Exception
{
runTestInternal("jaxws-jbws3287-B/TestService?wsdl");
}
-
+
+ @Test
+ @RunAsClient
+ @OperateOnDeployment("depC")
public void testEJB3JBossWebservicesXmlDD() throws Exception
{
runTestInternal("jaxws-jbws3287-C/EndpointImplService/Endpoint?wsdl");
9 years, 3 months
JBossWS SVN: r19279 - stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3736.
by jbossws-commits@lists.jboss.org
Author: rsearls
Date: 2014-12-27 16:08:00 -0500 (Sat, 27 Dec 2014)
New Revision: 19279
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3736/JBWS3736TestCase.java
Log:
arquillian migration jbws3736 test
Modified: stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3736/JBWS3736TestCase.java
===================================================================
--- stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3736/JBWS3736TestCase.java 2014-12-27 20:45:46 UTC (rev 19278)
+++ stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3736/JBWS3736TestCase.java 2014-12-27 21:08:00 UTC (rev 19279)
@@ -30,7 +30,15 @@
import javax.xml.ws.BindingProvider;
import javax.xml.ws.Service;
-import junit.framework.Test;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.container.test.api.RunAsClient;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.test.api.ArquillianResource;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.jboss.ws.common.IOUtils;
import org.jboss.wsf.test.JBossWSTest;
@@ -44,44 +52,43 @@
* @author alessio.soldano(a)jboss.com
* @since 07-Mar-2014
*/
+(a)RunWith(Arquillian.class)
public class JBWS3736TestCase extends JBossWSTest
{
- public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws3736";
+ @ArquillianResource
+ private URL baseURL;
- public static BaseDeployment<?>[] createDeployments() {
- List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
- list.add(new JBossWSTestHelper.JarDeployment("jaxws-jbws3736.jar") { {
+ @Deployment(testable = false)
+ public static JavaArchive createDeployments() {
+ JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "jaxws-jbws3736.jar");
archive
.addManifest()
.addClass(org.jboss.test.ws.jaxws.jbws3736.Endpoint.class)
.addClass(org.jboss.test.ws.jaxws.jbws3736.EndpointImpl.class)
.addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws3736/META-INF/wsdl/test.wsdl"), "wsdl/test.wsdl");
- }
- });
- return list.toArray(new BaseDeployment<?>[list.size()]);
+ return archive;
}
- public static Test suite()
- {
- return new JBossWSTestSetup(JBWS3736TestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
- }
-
+ @Test
+ @RunAsClient
public void testEndpoint() throws Exception
{
- URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ URL wsdlURL = new URL(baseURL + "/jaxws-jbws3736?wsdl");
QName serviceName = new QName("http://org.jboss.ws/jbws3736", "EndpointService");
Endpoint port = Service.create(wsdlURL, serviceName).getPort(Endpoint.class);
- ((BindingProvider)port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, TARGET_ENDPOINT_ADDRESS);
+ ((BindingProvider)port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, baseURL.toString() + "/jaxws-jbws3736");
String retObj = port.echo("Hello");
assertEquals("Hello", retObj);
}
+ @Test
+ @RunAsClient
public void testAddressRewrite() throws Exception
{
- String wsdl = IOUtils.readAndCloseStream(new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl").openStream());
+ String wsdl = IOUtils.readAndCloseStream(new URL(baseURL + "/jaxws-jbws3736?wsdl").openStream());
//we expect the published wsdl to have the https protocol in the soap:address because the original wsdl provided
//in the deployment has that. This shows that the reference to the wsdl in endpoint interface has been processed
//when rewriting the soap:address. If we got http protocol here, the fix won't be in place.
- assertTrue(wsdl.contains("https://" + getServerHost() + ":8443/jaxws-jbws3736"));
+ assertTrue(wsdl.contains("https://localhost:8443/jaxws-jbws3736"));
}
}
9 years, 3 months
JBossWS SVN: r19278 - stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jaxbcust.
by jbossws-commits@lists.jboss.org
Author: rsearls
Date: 2014-12-27 15:45:46 -0500 (Sat, 27 Dec 2014)
New Revision: 19278
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jaxbcust/BindingCustomizationTestCase.java
Log:
arquillian migration jaxbcust test
Modified: stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jaxbcust/BindingCustomizationTestCase.java
===================================================================
--- stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jaxbcust/BindingCustomizationTestCase.java 2014-12-27 15:15:08 UTC (rev 19277)
+++ stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jaxbcust/BindingCustomizationTestCase.java 2014-12-27 20:45:46 UTC (rev 19278)
@@ -22,6 +22,10 @@
package org.jboss.test.ws.jaxws.jaxbcust;
import junit.framework.TestCase;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.jboss.arquillian.container.test.api.RunAsClient;
+import org.jboss.arquillian.junit.Arquillian;
import org.jboss.ws.api.binding.BindingCustomization;
import org.jboss.ws.api.binding.JAXBBindingCustomization;
@@ -37,6 +41,7 @@
*
* @since 28-Jun-2007
*/
+(a)RunWith(Arquillian.class)
public class BindingCustomizationTestCase extends TestCase {
DeploymentModelFactory deploymentModelFactory;
@@ -50,9 +55,12 @@
deploymentModelFactory = spiProvider.getSPI(DeploymentModelFactory.class);
}
+ @Test
+ @RunAsClient
@SuppressWarnings("unchecked")
public void testCustomizationWriteAccess() throws Exception
{
+ setUp();
Endpoint endpoint = deploymentModelFactory.newHttpEndpoint(null);
BindingCustomization jaxbCustomization = new JAXBBindingCustomization();
jaxbCustomization.put("com.sun.xml.bind.defaultNamespaceRemap", "http://org.jboss.bindingCustomization");
@@ -72,9 +80,13 @@
}
}
+
+ @Test
+ @RunAsClient
@SuppressWarnings("unchecked")
public void testCustomizationReadAccess() throws Exception
{
+ setUp();
Endpoint endpoint = deploymentModelFactory.newHttpEndpoint(null);
BindingCustomization jaxbCustomization = new JAXBBindingCustomization();
jaxbCustomization.put("com.sun.xml.bind.defaultNamespaceRemap", "http://org.jboss.bindingCustomization");
9 years, 3 months
JBossWS SVN: r19277 - stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3293.
by jbossws-commits@lists.jboss.org
Author: rsearls
Date: 2014-12-27 10:15:08 -0500 (Sat, 27 Dec 2014)
New Revision: 19277
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3293/JBWS3293DispatchTestCase.java
Log:
arquillian migration jbws3293 test
Modified: stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3293/JBWS3293DispatchTestCase.java
===================================================================
--- stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3293/JBWS3293DispatchTestCase.java 2014-12-27 14:56:32 UTC (rev 19276)
+++ stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3293/JBWS3293DispatchTestCase.java 2014-12-27 15:15:08 UTC (rev 19277)
@@ -21,6 +21,7 @@
*/
package org.jboss.test.ws.jaxws.jbws3293;
+import java.net.URL;
import java.io.File;
import java.io.IOException;
import java.io.StringReader;
@@ -41,7 +42,15 @@
import javax.xml.ws.handler.Handler;
import javax.xml.ws.soap.SOAPBinding;
-import junit.framework.Test;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.container.test.api.RunAsClient;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.test.api.ArquillianResource;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.jboss.ws.common.DOMUtils;
import org.jboss.wsf.test.JBossWSTest;
@@ -55,6 +64,7 @@
*
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
*/
+(a)RunWith(Arquillian.class)
public class JBWS3293DispatchTestCase extends JBossWSTest
{
private final String targetNS = "http://org.jboss.ws/jaxws/jbws3293";
@@ -62,24 +72,22 @@
private Exception handlerException;
private boolean asyncHandlerCalled;
- public static BaseDeployment<?>[] createDeployments() {
- List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
- list.add(new JBossWSTestHelper.WarDeployment("jaxws-jbws3293.war") { {
+ @ArquillianResource
+ private URL baseURL;
+
+ @Deployment(testable = false)
+ public static WebArchive createDeployment() {
+ WebArchive archive = ShrinkWrap.create(WebArchive.class, "jaxws-jbws3293.war");
archive
.addManifest()
.addClass(org.jboss.test.ws.jaxws.jbws3293.Endpoint.class)
.addClass(org.jboss.test.ws.jaxws.jbws3293.EndpointBean.class)
.setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws3293/WEB-INF/web.xml"));
- }
- });
- return list.toArray(new BaseDeployment<?>[list.size()]);
+ return archive;
}
-
- public static Test suite()
- {
- return new JBossWSTestSetup(JBWS3293DispatchTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
- }
+ @Test
+ @RunAsClient
public void testInvokeAsynch() throws Exception
{
Source reqObj = new StreamSource(new StringReader(reqPayload));
@@ -88,6 +96,8 @@
verifyResponse(response.get(3000, TimeUnit.MILLISECONDS));
}
+ @Test
+ @RunAsClient
public void testInvokeAsynchHandler() throws Exception
{
AsyncHandler<Source> handler = new AsyncHandler<Source>()
@@ -130,7 +140,7 @@
QName serviceName = new QName(targetNS, "EndpointBeanService");
QName portName = new QName(targetNS, "EndpointPort");
Service service = Service.create(serviceName);
- service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, "http://" + getServerHost() + ":8080/jaxws-jbws3293");
+ service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, baseURL.toString());
Dispatch<Source> dispatch = service.createDispatch(portName, Source.class, Mode.PAYLOAD);
installHandler(dispatch);
return dispatch;
9 years, 3 months
JBossWS SVN: r19276 - stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2529.
by jbossws-commits@lists.jboss.org
Author: rsearls
Date: 2014-12-27 09:56:32 -0500 (Sat, 27 Dec 2014)
New Revision: 19276
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2529/JBWS2529TestCase.java
Log:
arquillian migration jbws2529 test
Modified: stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2529/JBWS2529TestCase.java
===================================================================
--- stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2529/JBWS2529TestCase.java 2014-12-27 14:48:57 UTC (rev 19275)
+++ stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2529/JBWS2529TestCase.java 2014-12-27 14:56:32 UTC (rev 19276)
@@ -31,6 +31,11 @@
import org.jboss.wsf.test.JBossWSTest;
import org.w3c.dom.Element;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.container.test.api.RunAsClient;
+import org.jboss.arquillian.junit.Arquillian;
/**
* [JBWS-2529] Missing type in generated WSDL part definition
*
@@ -39,6 +44,7 @@
* @author alessio.soldano(a)jboss.com
* @since 13-Mar-2009
*/
+(a)RunWith(Arquillian.class)
public class JBWS2529TestCase extends JBossWSTest
{
private static final String FS = System.getProperty("file.separator"); // '/' on unix, '\' on windows
@@ -62,8 +68,11 @@
TEST_DIR = createResourceFile("..").getAbsolutePath();
}
+ @Test
+ @RunAsClient
public void test() throws Exception
{
+ setUp();
File destDir = new File(TEST_DIR, "wsprovide" + FS + "java");
String absOutput = destDir.getAbsolutePath();
String command = JBOSS_HOME + FS + "bin" + FS + "wsprovide" + EXT + " -k -w -o " + absOutput + " --classpath " + CLASSES_DIR + " " + ENDPOINT_CLASS;
9 years, 3 months
JBossWS SVN: r19275 - stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2957.
by jbossws-commits@lists.jboss.org
Author: rsearls
Date: 2014-12-27 09:48:57 -0500 (Sat, 27 Dec 2014)
New Revision: 19275
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2957/JBWS2957TestCase.java
Log:
arquillian migration jbws2957 test
Modified: stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2957/JBWS2957TestCase.java
===================================================================
--- stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2957/JBWS2957TestCase.java 2014-12-27 04:10:26 UTC (rev 19274)
+++ stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2957/JBWS2957TestCase.java 2014-12-27 14:48:57 UTC (rev 19275)
@@ -27,7 +27,21 @@
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
-import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.jboss.arquillian.container.test.api.Deployer;
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.container.test.api.RunAsClient;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.test.api.ArquillianResource;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.jboss.shrinkwrap.api.spec.JavaArchive;
+import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.api.exporter.ZipExporter;
+import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
import org.jboss.test.ws.jaxws.jbws2957.common.HelloIface;
import org.jboss.wsf.test.JBossWSTest;
@@ -39,38 +53,45 @@
*
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
*/
+(a)RunWith(Arquillian.class)
public class JBWS2957TestCase extends JBossWSTest
{
- static {
- JBossWSTestHelper.writeToFile(new JBossWSTestHelper.JarDeployment("jaxws-jbws2957-ejbinwarwebinflib_ejb.jar") { {
- archive
+ @ArquillianResource
+ private URL baseURL;
+
+ @Deployment(testable = false)
+ public static EnterpriseArchive createDeployment() {
+ JavaArchive archive1 = ShrinkWrap.create(JavaArchive.class, "jaxws-jbws2957-ejbinwarwebinflib_ejb.jar");
+ archive1
.addManifest()
.addClass(org.jboss.test.ws.jaxws.jbws2957.common.HelloIface.class)
.addClass(org.jboss.test.ws.jaxws.jbws2957.common.HelloImpl.class);
- }
- });
- JBossWSTestHelper.writeToFile(new JBossWSTestHelper.WarDeployment("jaxws-jbws2957-ejbinwarwebinflib_web.war") { {
- archive
+ writeToDisk(archive1);
+
+ WebArchive archive2 = ShrinkWrap.create(WebArchive.class, "jaxws-jbws2957-ejbinwarwebinflib_web.war");
+ archive2
.addManifest()
.addAsLibrary(new File(JBossWSTestHelper.getTestArchiveDir(), "jaxws-jbws2957-ejbinwarwebinflib_ejb.jar"))
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws2957/WEB-INF/ejb-jar.xml"), "ejb-jar.xml")
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws2957/WEB-INF/wsdl/HelloService.wsdl"), "wsdl/HelloService.wsdl");
- }
- });
- JBossWSTestHelper.writeToFile(new JBossWSTestHelper.JarDeployment("jaxws-jbws2957-ejbinwarwebinflib.ear") { {
+ writeToDisk(archive2);
+
+ EnterpriseArchive archive = ShrinkWrap.create(EnterpriseArchive.class, "jaxws-jbws2957-ejbinwarwebinflib.ear");
archive.addManifest().addAsResource(new File(JBossWSTestHelper.getTestArchiveDir(), "jaxws-jbws2957-ejbinwarwebinflib_web.war"));
- }
- });
+ return archive;
}
-
- public static Test suite()
+
+ public static void writeToDisk(Archive archive)
{
- return new JBossWSTestSetup(JBWS2957TestCase.class, "jaxws-jbws2957-ejbinwarwebinflib.ear");
+ File file = new File(JBossWSTestHelper.getTestArchiveDir(), archive.getName());
+ archive.as(ZipExporter.class).exportTo(file, true);
}
+ @Test
+ @RunAsClient
public void testEJB() throws Exception
{
- URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws2957-ejbinwarwebinflib_web/Service/HelloImpl?wsdl");
+ URL wsdlURL = new URL(baseURL + "/Service/HelloImpl?wsdl");
QName serviceName = new QName("http://www.jboss.org/test/ws/jaxws/jbws2957", "Service");
Service.create(wsdlURL, serviceName);
Service service = Service.create(wsdlURL, serviceName);
9 years, 3 months
JBossWS SVN: r19274 - stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpoint.
by jbossws-commits@lists.jboss.org
Author: rsearls
Date: 2014-12-26 23:10:26 -0500 (Fri, 26 Dec 2014)
New Revision: 19274
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpoint/EndpointTestCase.java
Log:
arquillian migration endpoint test
Modified: stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpoint/EndpointTestCase.java
===================================================================
--- stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpoint/EndpointTestCase.java 2014-12-27 04:00:55 UTC (rev 19273)
+++ stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpoint/EndpointTestCase.java 2014-12-27 04:10:26 UTC (rev 19274)
@@ -29,16 +29,23 @@
import javax.xml.ws.soap.SOAPBinding;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.arquillian.junit.Arquillian;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.jboss.arquillian.container.test.api.RunAsClient;
/**
* Tests JAXWS dynamic endpoint deployment in an JSE environment.
*
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
*/
+(a)RunWith(Arquillian.class)
public class EndpointTestCase extends JBossWSTest
{
private static final int port = 8878;
+ @Test
+ @RunAsClient
public void test() throws Exception
{
String publishURL1 = "http://" + getServerHost() + ":" + port + "/jaxws-endpoint1";
9 years, 3 months