mirrored from https://www.bouncycastle.org/repositories/bc-java
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed some tests to still work on Java 5.
added service clause. moved version to gradle.properties
- Loading branch information
Showing
8 changed files
with
110 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
org.gradle.jvmargs=-Xmx2g | ||
org.gradle.jvmargs=-Xmx2g | ||
version=1.75 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
tls/src/test/jdk1.5/org/bouncycastle/jsse/provider/test/AllTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package org.bouncycastle.jsse.provider.test; | ||
|
||
import junit.extensions.TestSetup; | ||
import junit.framework.Test; | ||
import junit.framework.TestCase; | ||
import junit.framework.TestSuite; | ||
import org.bouncycastle.test.PrintTestResult; | ||
|
||
public class AllTests | ||
extends TestCase | ||
{ | ||
public static void main(String[] args) | ||
throws Exception | ||
{ | ||
PrintTestResult.printResult( junit.textui.TestRunner.run(suite())); | ||
} | ||
|
||
public static Test suite() | ||
throws Exception | ||
{ | ||
TestSuite suite = new TestSuite("JSSE tests"); | ||
// | ||
// suite.addTestSuite(BasicClientAuthTlsTest.class); | ||
// suite.addTestSuite(BasicTlsTest.class); | ||
suite.addTestSuite(ConfigTest.class); | ||
// suite.addTestSuite(ECDSACredentialsTest.class); | ||
// suite.addTestSuite(EdDSACredentialsTest.class); | ||
suite.addTestSuite(InstanceTest.class); | ||
suite.addTestSuite(KeyManagerFactoryTest.class); | ||
|
||
return new BCTestSetup(suite); | ||
} | ||
|
||
static class BCTestSetup | ||
extends TestSetup | ||
{ | ||
public BCTestSetup(Test test) | ||
{ | ||
super(test); | ||
} | ||
|
||
protected void setUp() | ||
{ | ||
|
||
} | ||
|
||
protected void tearDown() | ||
{ | ||
|
||
} | ||
} | ||
|
||
private static boolean hasClass(String name) | ||
{ | ||
try | ||
{ | ||
AllTests.class.getClassLoader().loadClass(name); | ||
return true; | ||
} | ||
catch (Exception e) | ||
{ | ||
return false; | ||
} | ||
} | ||
} |