Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'prov/src/test/jdk1.4/org/spongycastle/jce/provider/test/RegressionTest.java')
-rw-r--r--prov/src/test/jdk1.4/org/spongycastle/jce/provider/test/RegressionTest.java73
1 files changed, 73 insertions, 0 deletions
diff --git a/prov/src/test/jdk1.4/org/spongycastle/jce/provider/test/RegressionTest.java b/prov/src/test/jdk1.4/org/spongycastle/jce/provider/test/RegressionTest.java
new file mode 100644
index 00000000..b4e3209f
--- /dev/null
+++ b/prov/src/test/jdk1.4/org/spongycastle/jce/provider/test/RegressionTest.java
@@ -0,0 +1,73 @@
+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 DESedeTest(),
+ new AESTest(),
+ new AESSICTest(),
+ new GOST28147Test(),
+ new PBETest(),
+ new BlockCipherTest(),
+ new MacTest(),
+ new HMacTest(),
+ new SealedTest(),
+ new RSATest(),
+ new DHTest(),
+ new DSATest(),
+ new ImplicitlyCaTest(),
+ new GOST3410Test(),
+ new ElGamalTest(),
+ new ECIESTest(),
+ new SigTest(),
+ new CertTest(),
+ new PKCS10CertRequestTest(),
+ new EncryptedPrivateKeyInfoTest(),
+ new KeyStoreTest(),
+ new PKCS12StoreTest(),
+ new DigestTest(),
+ new PSSTest(),
+ new WrapTest(),
+ new DoFinalTest(),
+ new CipherStreamTest(),
+ new NamedCurveTest(),
+ new PKIXTest(),
+ new PKIXPolicyMappingTest(),
+ new NetscapeCertRequestTest(),
+ new CertPathTest(),
+ new CertStoreTest(),
+ // new CertPathValidatorTest(),
+ new CertPathBuilderTest(),
+ new NISTCertPathTest(),
+ new SerialisationTest()
+ };
+
+ public static void main(
+ String[] args)
+ {
+ Security.addProvider(new BouncyCastleProvider());
+
+ System.out.println("Testing " + Security.getProvider("SC").getInfo() + " version: " + Security.getProvider("SC").getVersion());
+
+ 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);
+ }
+ }
+}
+