You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by jk...@apache.org on 2005/10/26 20:44:30 UTC

svn commit: r328706 - /incubator/woden/java/test/org/apache/woden/WSDLReaderTest.java

Author: jkaputin
Date: Wed Oct 26 11:44:21 2005
New Revision: 328706

URL: http://svn.apache.org/viewcvs?rev=328706&view=rev
Log:
Completed the assertions for testReadInvalidWSDL20.

Modified:
    incubator/woden/java/test/org/apache/woden/WSDLReaderTest.java

Modified: incubator/woden/java/test/org/apache/woden/WSDLReaderTest.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/test/org/apache/woden/WSDLReaderTest.java?rev=328706&r1=328705&r2=328706&view=diff
==============================================================================
--- incubator/woden/java/test/org/apache/woden/WSDLReaderTest.java (original)
+++ incubator/woden/java/test/org/apache/woden/WSDLReaderTest.java Wed Oct 26 11:44:21 2005
@@ -72,11 +72,13 @@
 	  {
 		URL wsdlURL = getClass().getClassLoader().getResource("./org/apache/woden/badDescriptionTags.wsdl");
 	    desc = reader.readWSDL(wsdlURL.toString());
+        fail("Expected a WSDLException because the \"description\" tag was deliberately misspelt.");
 	  }
-	  catch(Exception e)
+	  catch(WSDLException e)
 	  {
+          assertTrue("Expected a WSDLException with message containing \"WSDL004\", but got: " + e.getMessage() ,
+             e.getMessage().indexOf("WSDL004") > -1);
 	  }
-      assertNull("The description returned is not null.", desc);
   }
 
 }



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