Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5051CE079 for ; Wed, 9 Jan 2013 20:54:45 +0000 (UTC) Received: (qmail 51144 invoked by uid 500); 9 Jan 2013 20:54:45 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 51090 invoked by uid 500); 9 Jan 2013 20:54:45 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 51083 invoked by uid 99); 9 Jan 2013 20:54:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 20:54:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 20:54:44 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id BA50C2388A3D; Wed, 9 Jan 2013 20:54:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1431059 - /cxf/branches/2.5.x-fixes/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPConduitURLConnectionTest.java Date: Wed, 09 Jan 2013 20:54:24 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130109205424.BA50C2388A3D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dkulp Date: Wed Jan 9 20:54:24 2013 New Revision: 1431059 URL: http://svn.apache.org/viewvc?rev=1431059&view=rev Log: Merged revisions 1430991 via git cherry-pick from https://svn.apache.org/repos/asf/cxf/branches/2.6.x-fixes ........ r1430991 | dkulp | 2013-01-09 13:05:28 -0500 (Wed, 09 Jan 2013) | 18 lines Merged revisions 1430985 via git cherry-pick from https://svn.apache.org/repos/asf/cxf/branches/2.7.x-fixes ........ r1430985 | dkulp | 2013-01-09 13:03:31 -0500 (Wed, 09 Jan 2013) | 10 lines Merged revisions 1430976 via git cherry-pick from https://svn.apache.org/repos/asf/cxf/trunk ........ r1430976 | dkulp | 2013-01-09 12:55:24 -0500 (Wed, 09 Jan 2013) | 2 lines Remove test that tests the ancient and long since deprecated OldImpl. URL seems to cache the handler which causes issues with later tests and it's not likely to ever be hit anymore using modern JDK's ........ ........ ........ Modified: cxf/branches/2.5.x-fixes/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPConduitURLConnectionTest.java Modified: cxf/branches/2.5.x-fixes/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPConduitURLConnectionTest.java URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPConduitURLConnectionTest.java?rev=1431059&r1=1431058&r2=1431059&view=diff ============================================================================== --- cxf/branches/2.5.x-fixes/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPConduitURLConnectionTest.java (original) +++ cxf/branches/2.5.x-fixes/rt/transports/http/src/test/java/org/apache/cxf/transport/http/HTTPConduitURLConnectionTest.java Wed Jan 9 20:54:24 2013 @@ -127,32 +127,9 @@ public class HTTPConduitURLConnectionTes assertTrue("TLS Client Parameters should generate an HttpsURLConnection instead of " + connection.getClass().getName(), HttpsURLConnection.class.isInstance(connection)); - } + HttpURLConnection con = (HttpURLConnection)connection; + con.disconnect(); - /** - * This verifys that the underlying connection is an HttpsURLConnection. - */ - @Test - public void testTLSServerParametersWithDeprecatedSunSSLProtocol() throws Exception { - if (!System.getProperty("java.vm.vendor").toLowerCase().contains("sun")) { - return; - } - String javaProtocolHandlerPkgsKey = "java.protocol.handler.pkgs"; - String javaProtocolHandlerPkgsValue = System.getProperty(javaProtocolHandlerPkgsKey); - try { - System.setProperty(javaProtocolHandlerPkgsKey, "com.sun.net.ssl.internal.www.protocol"); - Object connection = doTestTLSServerParameters(); - 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) { - System.clearProperty(javaProtocolHandlerPkgsKey); - } else { - System.setProperty(javaProtocolHandlerPkgsKey, javaProtocolHandlerPkgsValue); - } - } } private Object doTestTLSServerParameters() throws Exception {