You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by pr...@apache.org on 2008/01/21 13:20:41 UTC

svn commit: r613867 [4/4] - in /webservices/axis2/branches/java/jaxws21/modules: adb-codegen/src/org/apache/axis2/schema/template/ addressing/src/META-INF/ addressing/src/org/apache/axis2/handlers/addressing/ addressing/test/org/apache/axis2/handlers/a...

Modified: webservices/axis2/branches/java/jaxws21/modules/metadata/test/org/apache/axis2/jaxws/description/builder/SparseAnnotTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/metadata/test/org/apache/axis2/jaxws/description/builder/SparseAnnotTests.java?rev=613867&r1=613866&r2=613867&view=diff
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/metadata/test/org/apache/axis2/jaxws/description/builder/SparseAnnotTests.java (original)
+++ webservices/axis2/branches/java/jaxws21/modules/metadata/test/org/apache/axis2/jaxws/description/builder/SparseAnnotTests.java Mon Jan 21 04:20:38 2008
@@ -73,6 +73,29 @@
         WebServiceClient wsClient = svcDescComposite.getWebServiceClientAnnot();
         assertTrue(wsClient instanceof WebServiceClientAnnot);
     }
+    /**
+     * The WebServiceRef annotation isn't processed by the JAXWS runtime.  The container (i.e. the
+     * client container, web container, or ejb container) processes it since it is responsible for
+     * doing resource injection.  This means none of the other tests deal with WebServiceRef, so
+     * this simple test validates a few aspects of the composite annotation processing.
+     */
+    public void testWebServiceRef() {
+        org.apache.axis2.jaxws.description.builder.WebServiceRefAnnot wsr = WebServiceRefAnnot.createWebServiceRefAnnotImpl();
+        assertTrue(wsr.name().equals(""));
+        assertTrue(wsr.wsdlLocation().equals(""));
+        assertTrue("".equals(wsr.getTypeString()));
+        assertTrue("".equals(wsr.getValueString()));
+        assertNull(wsr.type());
+        assertNull(wsr.value());
+        
+        wsr = WebServiceRefAnnot.createWebServiceRefAnnotImpl("name", "wsdlLocation", String.class, Object.class, "mappedName");
+        assertTrue(wsr.name().equals("name"));
+        assertTrue(wsr.wsdlLocation().equals("wsdlLocation"));
+        assertTrue("".equals(wsr.getTypeString()));
+        assertTrue("".equals(wsr.getValueString()));
+        assertTrue(wsr.type() == String.class);
+        assertTrue(wsr.value() == Object.class);
+    }
 
 }
 

Modified: webservices/axis2/branches/java/jaxws21/modules/metadata/test/org/apache/axis2/jaxws/description/impl/ClientDBCSupportEndpointTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/metadata/test/org/apache/axis2/jaxws/description/impl/ClientDBCSupportEndpointTests.java?rev=613867&r1=613866&r2=613867&view=diff
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/metadata/test/org/apache/axis2/jaxws/description/impl/ClientDBCSupportEndpointTests.java (original)
+++ webservices/axis2/branches/java/jaxws21/modules/metadata/test/org/apache/axis2/jaxws/description/impl/ClientDBCSupportEndpointTests.java Mon Jan 21 04:20:38 2008
@@ -22,6 +22,7 @@
 import org.apache.axis2.jaxws.description.EndpointDescription;
 import org.apache.axis2.jaxws.description.ServiceDescription;
 import org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite;
+import org.apache.axis2.jaxws.i18n.Messages;
 
 import javax.jws.WebService;
 import javax.xml.namespace.QName;
@@ -178,7 +179,8 @@
         }
         catch (WebServiceException e) {
             // Expected path
-            assertTrue(e.toString().contains("CreateDispatch can not have a composite"));
+            String msg = Messages.getMessage("serviceDescErr6");
+            assertTrue(e.toString().contains(msg));
         }
     }
     



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org