< prev index next >

test/jdk/sun/security/ec/TestEC.java

Print this page
rev 59107 : imported patch security


  90         if (p == null) {
  91             throw new NoSuchProviderException("Can't get SunEC provider");
  92         }
  93 
  94         System.out.println("Running tests with " + p.getName() +
  95             " provider...\n");
  96         long start = System.currentTimeMillis();
  97 
  98         /*
  99          * The entry point used for each test is its instance method
 100          * called main (not its static method called main).
 101          */
 102         new TestECDH().main(p);
 103         new TestECDSA().main(p);
 104         new TestCurves().main(p);
 105         new TestKeyFactory().main(p);
 106         new TestECGenSpec().main(p);
 107         new ReadPKCS12().main(p);
 108         new ReadCertificates().main(p);
 109 
 110         // ClientJSSEServerJSSE fails on Solaris 11 when both SunEC and
 111         // SunPKCS11-Solaris providers are enabled.
 112         // Workaround:
 113         // Security.removeProvider("SunPKCS11-Solaris");
 114         new ClientJSSEServerJSSE().main(p);
 115 
 116         long stop = System.currentTimeMillis();
 117         System.out.println("\nCompleted tests with " + p.getName() +
 118             " provider (" + ((stop - start) / 1000.0) + " seconds).");
 119     }
 120 }


  90         if (p == null) {
  91             throw new NoSuchProviderException("Can't get SunEC provider");
  92         }
  93 
  94         System.out.println("Running tests with " + p.getName() +
  95             " provider...\n");
  96         long start = System.currentTimeMillis();
  97 
  98         /*
  99          * The entry point used for each test is its instance method
 100          * called main (not its static method called main).
 101          */
 102         new TestECDH().main(p);
 103         new TestECDSA().main(p);
 104         new TestCurves().main(p);
 105         new TestKeyFactory().main(p);
 106         new TestECGenSpec().main(p);
 107         new ReadPKCS12().main(p);
 108         new ReadCertificates().main(p);
 109 




 110         new ClientJSSEServerJSSE().main(p);
 111 
 112         long stop = System.currentTimeMillis();
 113         System.out.println("\nCompleted tests with " + p.getName() +
 114             " provider (" + ((stop - start) / 1000.0) + " seconds).");
 115     }
 116 }
< prev index next >