Merge pull request #33 from cconlon/junitproviderorder
register wolfJSSE as first Security provider in unit testspull/34/head
commit
c697bc9dd9
|
@ -77,7 +77,7 @@ public class WolfSSLContextTest {
|
|||
System.out.println("WolfSSLContext Class");
|
||||
|
||||
/* install wolfJSSE provider at runtime */
|
||||
Security.addProvider(new WolfSSLProvider());
|
||||
Security.insertProviderAt(new WolfSSLProvider(), 1);
|
||||
|
||||
Provider p = Security.getProvider("wolfJSSE");
|
||||
assertNotNull(p);
|
||||
|
|
|
@ -73,7 +73,7 @@ public class WolfSSLEngineTest {
|
|||
System.out.println("WolfSSLEngine Class");
|
||||
|
||||
/* install wolfJSSE provider at runtime */
|
||||
Security.addProvider(new WolfSSLProvider());
|
||||
Security.insertProviderAt(new WolfSSLProvider(), 1);
|
||||
|
||||
Provider p = Security.getProvider("wolfJSSE");
|
||||
assertNotNull(p);
|
||||
|
|
|
@ -52,7 +52,7 @@ public class WolfSSLKeyX509Test {
|
|||
System.out.println("WolfSSLKeyX509 Class");
|
||||
|
||||
/* install wolfJSSE provider at runtime */
|
||||
Security.addProvider(new WolfSSLProvider());
|
||||
Security.insertProviderAt(new WolfSSLProvider(), 1);
|
||||
|
||||
Provider p = Security.getProvider("wolfJSSE");
|
||||
assertNotNull(p);
|
||||
|
|
|
@ -84,7 +84,7 @@ public class WolfSSLServerSocketFactoryTest {
|
|||
System.out.println("WolfSSLServerSocketFactory Class");
|
||||
|
||||
/* install wolfJSSE provider at runtime */
|
||||
Security.addProvider(new WolfSSLProvider());
|
||||
Security.insertProviderAt(new WolfSSLProvider(), 1);
|
||||
|
||||
Provider p = Security.getProvider("wolfJSSE");
|
||||
assertNotNull(p);
|
||||
|
|
|
@ -97,7 +97,7 @@ public class WolfSSLServerSocketTest {
|
|||
tf = new WolfSSLTestFactory();
|
||||
|
||||
/* install wolfJSSE provider at runtime */
|
||||
Security.addProvider(new WolfSSLProvider());
|
||||
Security.insertProviderAt(new WolfSSLProvider(), 1);
|
||||
|
||||
Provider p = Security.getProvider("wolfJSSE");
|
||||
assertNotNull(p);
|
||||
|
|
|
@ -61,7 +61,7 @@ public class WolfSSLSessionTest {
|
|||
System.out.println("WolfSSLImplementSSLSession Class");
|
||||
|
||||
/* install wolfJSSE provider at runtime */
|
||||
Security.addProvider(new WolfSSLProvider());
|
||||
Security.insertProviderAt(new WolfSSLProvider(), 1);
|
||||
|
||||
Provider p = Security.getProvider("wolfJSSE");
|
||||
assertNotNull(p);
|
||||
|
|
|
@ -90,7 +90,7 @@ public class WolfSSLSocketFactoryTest {
|
|||
System.out.println("WolfSSLSocketFactory Class");
|
||||
|
||||
/* install wolfJSSE provider at runtime */
|
||||
Security.addProvider(new WolfSSLProvider());
|
||||
Security.insertProviderAt(new WolfSSLProvider(), 1);
|
||||
|
||||
Provider p = Security.getProvider("wolfJSSE");
|
||||
assertNotNull(p);
|
||||
|
|
|
@ -123,7 +123,7 @@ public class WolfSSLSocketTest {
|
|||
tf = new WolfSSLTestFactory();
|
||||
|
||||
/* install wolfJSSE provider at runtime */
|
||||
Security.addProvider(new WolfSSLProvider());
|
||||
Security.insertProviderAt(new WolfSSLProvider(), 1);
|
||||
|
||||
Provider p = Security.getProvider("wolfJSSE");
|
||||
assertNotNull(p);
|
||||
|
|
|
@ -58,7 +58,7 @@ public class WolfSSLTrustX509Test {
|
|||
System.out.println("WolfSSLTrustX509 Class");
|
||||
|
||||
/* install wolfJSSE provider at runtime */
|
||||
Security.addProvider(new WolfSSLProvider());
|
||||
Security.insertProviderAt(new WolfSSLProvider(), 1);
|
||||
|
||||
Provider p = Security.getProvider("wolfJSSE");
|
||||
assertNotNull(p);
|
||||
|
|
|
@ -71,7 +71,7 @@ public class WolfSSLX509Test {
|
|||
System.out.println("WolfSSLX509 Class");
|
||||
|
||||
/* install wolfJSSE provider at runtime */
|
||||
Security.addProvider(new WolfSSLProvider());
|
||||
Security.insertProviderAt(new WolfSSLProvider(), 1);
|
||||
|
||||
|
||||
Provider p = Security.getProvider("wolfJSSE");
|
||||
|
|
Loading…
Reference in New Issue