cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1133028 - /cxf/trunk/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPTransportFactoryTest.java
Date Tue, 07 Jun 2011 14:38:44 GMT
Author: ningjiang
Date: Tue Jun  7 14:38:44 2011
New Revision: 1133028

URL: http://svn.apache.org/viewvc?rev=1133028&view=rev
Log:
CXF-3571 try to fix the test error of jdk15

Modified:
    cxf/trunk/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPTransportFactoryTest.java

Modified: cxf/trunk/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPTransportFactoryTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPTransportFactoryTest.java?rev=1133028&r1=1133027&r2=1133028&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPTransportFactoryTest.java
(original)
+++ cxf/trunk/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPTransportFactoryTest.java
Tue Jun  7 14:38:44 2011
@@ -34,12 +34,14 @@ public class HTTPTransportFactoryTest ex
         EndpointInfo ei = new EndpointInfo();
         ei.setAddress("http://nowhere.com/bar/foo");
         HTTPTransportFactory factory = bus.getExtension(HTTPTransportFactory.class);
-        try {
-            factory.getDestination(ei);
-            fail("Expect exception here.");
-        } catch (IOException ex) {
-            assertTrue("We should find some exception related to the HttpDestination"
+        if (factory != null) {
+            try {
+                factory.getDestination(ei);
+                fail("Expect exception here.");
+            } catch (IOException ex) {
+                assertTrue("We should find some exception related to the HttpDestination"
                        , ex.getMessage().indexOf("HttpDestinationFactory") > 0);
+            }
         }
     }
 



Mime
View raw message