register wolfJSSE as first Security provider in unit tests

pull/33/head
Chris Conlon 2020-02-27 17:08:45 -07:00
parent b3301d3479
commit d836db78b0
10 changed files with 10 additions and 10 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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");