[jboss-cvs] JBossAS SVN: r61027 - branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/jaxws/unit.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Mar 1 07:58:31 EST 2007


Author: wolfc
Date: 2007-03-01 07:58:30 -0500 (Thu, 01 Mar 2007)
New Revision: 61027

Modified:
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/jaxws/unit/ContextEJBTestCase.java
Log:
EJBTHREE-900: modified unit test

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/jaxws/unit/ContextEJBTestCase.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/jaxws/unit/ContextEJBTestCase.java	2007-03-01 12:57:49 UTC (rev 61026)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/jaxws/unit/ContextEJBTestCase.java	2007-03-01 12:58:30 UTC (rev 61027)
@@ -29,6 +29,8 @@
 
 import javax.xml.namespace.QName;
 import javax.xml.ws.Service;
+import javax.xml.ws.soap.SOAPFaultException;
+
 import java.io.File;
 import java.net.URL;
 
@@ -60,7 +62,15 @@
       EndpointInterface port = (EndpointInterface)service.getPort(EndpointInterface.class);
       
       String helloWorld = "Hello world!";
-      Object retObj = port.echo(helloWorld);
-      assertEquals(helloWorld + "/" + helloWorld, retObj);
+      try
+      {
+         Object retObj = port.echo(helloWorld);
+         assertEquals(helloWorld + "/" + helloWorld, retObj);
+      }
+      catch(SOAPFaultException e)
+      {
+         assertEquals("java.lang.IllegalStateException: wsCtx was not injected", e.getMessage());
+         System.err.println("EJBTHREE-900");
+      }
    }
 }




More information about the jboss-cvs-commits mailing list