Merge pull request #33 from cconlon/junitproviderorder

register wolfJSSE as first Security provider in unit tests
pull/34/head
JacobBarthelmeh 2020-02-28 09:40:33 -07:00 committed by GitHub
commit c697bc9dd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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");