1 25 package testsuite.simple; 26 27 import testsuite.BaseTestCase; 28 29 34 public class SSLTest extends BaseTestCase { 35 38 44 public SSLTest(String name) { 45 super(name); 46 47 System.setProperty("javax.net.debug", "all"); 48 49 StringBuffer sslUrl = new StringBuffer (dbUrl); 50 51 if (dbUrl.indexOf("?") == -1) { 52 sslUrl.append("?"); 53 } else { 54 sslUrl.append("&"); 55 } 56 57 sslUrl.append("useSSL=true"); 58 } 59 60 63 68 public static void main(String [] args) { 69 junit.textui.TestRunner.run(SSLTest.class); 70 } 71 72 78 public void testConnect() throws Exception { 79 System.out.println("<<<<<<<<<<< Look for SSL debug output >>>>>>>>>>>"); 80 } 81 } 82 | Popular Tags |