blob: 9b8e0bd977b872348bc6e2f2efd28efe368f3b86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
package org.spongycastle.jce.provider.test;
import java.security.Security;
import org.spongycastle.jce.provider.BouncyCastleProvider;
import org.spongycastle.util.test.SimpleTestResult;
import org.spongycastle.util.test.Test;
import org.spongycastle.util.test.TestResult;
public class RegressionTest
{
public static Test[] tests = {
new FIPSDESTest(),
new BlockCipherTest(),
new MacTest(),
new SealedTest(),
new RSATest(),
new SigTest(),
new CertTest(),
new KeyStoreTest(),
new DigestTest(),
new WrapTest(),
new CertPathTest(),
new CertStoreTest(),
// new CertPathValidatorTest(),
new CertPathBuilderTest()
};
public static void main(
String[] args)
{
Security.addProvider(new BouncyCastleProvider());
for (int i = 0; i != tests.length; i++)
{
TestResult result = tests[i].perform();
if (((SimpleTestResult)result).getException() != null)
{
((SimpleTestResult)result).getException().printStackTrace();
}
System.out.println(result);
}
}
}
|