jdk/test/javax/net/ssl/SSLEngine/ConnectionTest.java
changeset 29902 dc24eacaae11
parent 23052 241885315119
child 31706 895170f33881
--- a/jdk/test/javax/net/ssl/SSLEngine/ConnectionTest.java	Tue Apr 14 13:02:23 2015 -0700
+++ b/jdk/test/javax/net/ssl/SSLEngine/ConnectionTest.java	Wed Apr 15 07:34:24 2015 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -33,6 +33,8 @@
  * The code could certainly be tightened up a lot.
  *
  * @author Brad Wetmore
+ *
+ * @run main/othervm ConnectionTest
  */
 
 import javax.net.ssl.*;
@@ -669,6 +671,10 @@
     }
 
     public static void main(String args[]) throws Exception {
+        // reset the security property to make sure that the algorithms
+        // and keys used in this test are not disabled.
+        Security.setProperty("jdk.tls.disabledAlgorithms", "");
+
         ConnectionTest ct = new ConnectionTest();
         ct.test();
     }