[jbossws-commits] JBossWS SVN: r15686 - in stack/native/trunk/modules/testsuite/native-tests: src/test/java/org/jboss/test/ws/jaxrpc/samples/serviceref and 1 other directory.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Fri Feb 17 09:44:27 EST 2012


Author: ropalka
Date: 2012-02-17 09:44:26 -0500 (Fri, 17 Feb 2012)
New Revision: 15686

Modified:
   stack/native/trunk/modules/testsuite/native-tests/scripts/build-samples-jaxrpc.xml
   stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/samples/serviceref/ServiceRefEJBTestCase.java
Log:
rename ejb archive to don't be detected as appclient jar

Modified: stack/native/trunk/modules/testsuite/native-tests/scripts/build-samples-jaxrpc.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/scripts/build-samples-jaxrpc.xml	2012-02-17 14:42:33 UTC (rev 15685)
+++ stack/native/trunk/modules/testsuite/native-tests/scripts/build-samples-jaxrpc.xml	2012-02-17 14:44:26 UTC (rev 15686)
@@ -504,7 +504,7 @@
         <include name="wsdl/**"/>
       </webinf>
     </war>
-    <jar destfile="${tests.output.dir}/test-libs/jaxrpc-samples-serviceref-ejb-client.jar">
+    <jar destfile="${tests.output.dir}/test-libs/jaxrpc-samples-serviceref-ejbclient.jar">
       <fileset dir="${tests.output.dir}/test-classes">
         <include name="org/jboss/test/ws/jaxrpc/samples/serviceref/EJBClient.class"/>
         <include name="org/jboss/test/ws/jaxrpc/samples/serviceref/EJBRemote.class"/>

Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/samples/serviceref/ServiceRefEJBTestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/samples/serviceref/ServiceRefEJBTestCase.java	2012-02-17 14:42:33 UTC (rev 15685)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/samples/serviceref/ServiceRefEJBTestCase.java	2012-02-17 14:44:26 UTC (rev 15686)
@@ -45,10 +45,10 @@
 public class ServiceRefEJBTestCase extends JBossWSTest
 {
    public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxrpc-samples-serviceref";
-   
+
    public static Test suite()
    {
-      return new JBossWSTestSetup(ServiceRefEJBTestCase.class, "jaxrpc-samples-serviceref.war, jaxrpc-samples-serviceref-ejb-client.jar");
+      return new JBossWSTestSetup(ServiceRefEJBTestCase.class, "jaxrpc-samples-serviceref.war, jaxrpc-samples-serviceref-ejbclient.jar");
    }
 
    public void testWSDLAccess() throws MalformedURLException
@@ -58,7 +58,7 @@
       WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
       assertNotNull(wsdlDefinitions);
    }
-   
+
    public void testDynamicProxy() throws Exception
    {
       URL wsdlURL = getResourceURL("jaxrpc/samples/serviceref/META-INF/wsdl/TestEndpoint.wsdl");
@@ -75,12 +75,11 @@
    public void testEJBClient() throws Exception
    {
       InitialContext iniCtx = getInitialContext();
-      EJBRemoteHome ejbHome = (EJBRemoteHome)iniCtx.lookup("ejb:/jaxrpc-samples-serviceref-ejb-client//EJBClient!" + EJBRemoteHome.class.getName());
+      EJBRemoteHome ejbHome = (EJBRemoteHome)iniCtx.lookup("ejb:/jaxrpc-samples-serviceref-ejbclient//EJBClient!" + EJBRemoteHome.class.getName());
       EJBRemote ejbRemote = ejbHome.create();
 
       String helloWorld = "Hello World!";
       Object retObj = ejbRemote.echo(helloWorld);
       assertEquals(helloWorld, retObj);
-      
    }
 }



More information about the jbossws-commits mailing list