Author: rsearls
Date: 2014-12-24 11:58:21 -0500 (Wed, 24 Dec 2014)
New Revision: 19239
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws1446/JBWS1446TestCase.java
Log:
arquillian migration jbws1446 test
Modified:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws1446/JBWS1446TestCase.java
===================================================================
---
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws1446/JBWS1446TestCase.java 2014-12-24
16:49:18 UTC (rev 19238)
+++
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws1446/JBWS1446TestCase.java 2014-12-24
16:58:21 UTC (rev 19239)
@@ -28,7 +28,15 @@
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.JavaArchive;
import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.wsf.test.JBossWSTest;
@@ -44,28 +52,27 @@
* @author Thomas.Diesler(a)jboss.com
* @since 20-Jun-2007
*/
+(a)RunWith(Arquillian.class)
public class JBWS1446TestCase extends JBossWSTest
{
- public static BaseDeployment<?>[] createDeployments() {
- List<BaseDeployment<?>> list = new
LinkedList<BaseDeployment<?>>();
- list.add(new JBossWSTestHelper.JarDeployment("jaxws-jbws1446.jar") { {
+ @ArquillianResource
+ private URL baseURL;
+
+ @Deployment(testable = false)
+ public static JavaArchive createDeployments() {
+ JavaArchive archive = ShrinkWrap.create(JavaArchive.class,
"jaxws-jbws1446.jar");
archive
.setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ "Dependencies: org.jboss.logging\n"))
.addClass(org.jboss.test.ws.jaxws.jbws1446.EJB3Bean.class);
- }
- });
- return list.toArray(new BaseDeployment<?>[list.size()]);
+ return archive;
}
-
- public static Test suite()
- {
- return new JBossWSTestSetup(JBWS1446TestCase.class,
JBossWSTestHelper.writeToFile(createDeployments()));
- }
+ @Test
+ @RunAsClient
public void testObjectAccess() throws Exception
{
- URL wsdlURL = new URL("http://" + getServerHost() +
":8080/jaxws-jbws1446/EJB3Bean?wsdl");
+ URL wsdlURL = new URL(baseURL + "/jaxws-jbws1446/EJB3Bean?wsdl");
QName serviceName = new
QName("http://jbws1446.jaxws.ws.test.jboss.org/",
"EJB3BeanService");
Service service = Service.create(wsdlURL, serviceName);
EndpointInterface port = service.getPort(EndpointInterface.class);