commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcar...@apache.org
Subject svn commit: r348163 - /jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestJaxRpcProvider.java
Date Tue, 22 Nov 2005 13:03:42 GMT
Author: jcarman
Date: Tue Nov 22 05:03:37 2005
New Revision: 348163

URL: http://svn.apache.org/viewcvs?rev=348163&view=rev
Log:
Improving test coverage.

Modified:
    jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestJaxRpcProvider.java

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestJaxRpcProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestJaxRpcProvider.java?rev=348163&r1=348162&r2=348163&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestJaxRpcProvider.java
(original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestJaxRpcProvider.java
Tue Nov 22 05:03:37 2005
@@ -47,14 +47,8 @@
                 "http://www.themindelectric.com/wsdl/net.xmethods.services.stockquote.StockQuote/"
);
         provider.setServiceLocalPart( "net.xmethods.services.stockquote.StockQuoteService"
);
         provider.setServicePrefix( "" );
-        try
-        {
-            provider.getObject();
-            fail();
-        }
-        catch( ObjectProviderException e )
-        {
-        }
+        final QuoteService quote = ( QuoteService ) provider.getObject();
+        assertNotNull( quote );
     }
 
     public void testGetObjectWithoutWsdl() throws Exception



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


Mime
View raw message