cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1430965 - /cxf/trunk/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPConduitURLConnectionTest.java
Date Wed, 09 Jan 2013 17:24:25 GMT
Author: dkulp
Date: Wed Jan  9 17:24:25 2013
New Revision: 1430965

URL: http://svn.apache.org/viewvc?rev=1430965&view=rev
Log:
Add some extra information to the assert message

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

Modified: cxf/trunk/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPConduitURLConnectionTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPConduitURLConnectionTest.java?rev=1430965&r1=1430964&r2=1430965&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPConduitURLConnectionTest.java
(original)
+++ cxf/trunk/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPConduitURLConnectionTest.java
Wed Jan  9 17:24:25 2013
@@ -123,8 +123,10 @@ public class HTTPConduitURLConnectionTes
     @Test
     public void testTLSServerParameters() throws Exception {
         Object connection = doTestTLSServerParameters();
-        assertTrue("TLS Client Parameters should generate an HttpsURLConnection",
-                HttpsURLConnection.class.isInstance(connection));
+        assertNotNull("Connection should not be null", connection);
+        assertTrue("TLS Client Parameters should generate an HttpsURLConnection instead of
" 
+            + connection.getClass().getName(),
+            HttpsURLConnection.class.isInstance(connection));
     }
 
     /**
@@ -140,7 +142,9 @@ public class HTTPConduitURLConnectionTes
         try {
             System.setProperty(javaProtocolHandlerPkgsKey, "com.sun.net.ssl.internal.www.protocol");
             Object connection = doTestTLSServerParameters();
-            assertTrue("TLS Client Parameters should generate an HttpsURLConnection",
+            assertNotNull("Connection should not be null", connection);
+            assertTrue("TLS Client Parameters should generate an HttpsURLConnection instead
of " 
+                           + connection.getClass().getName(),
                     connection.getClass().getName().contains("HttpsURLConnection"));
         } finally {
             if (javaProtocolHandlerPkgsValue == null) {



Mime
View raw message