summaryrefslogtreecommitdiffstats
path: root/bcpkix/src/main/java/org/bouncycastle/mozilla/test/AllTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'bcpkix/src/main/java/org/bouncycastle/mozilla/test/AllTests.java')
-rw-r--r--bcpkix/src/main/java/org/bouncycastle/mozilla/test/AllTests.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/bcpkix/src/main/java/org/bouncycastle/mozilla/test/AllTests.java b/bcpkix/src/main/java/org/bouncycastle/mozilla/test/AllTests.java
new file mode 100644
index 0000000..3c0dcc6
--- /dev/null
+++ b/bcpkix/src/main/java/org/bouncycastle/mozilla/test/AllTests.java
@@ -0,0 +1,43 @@
+package org.bouncycastle.mozilla.test;
+
+import java.security.Security;
+
+import org.bouncycastle.jce.provider.BouncyCastleProvider;
+import org.bouncycastle.util.test.SimpleTestResult;
+
+import junit.framework.*;
+
+public class AllTests
+ extends TestCase
+{
+ public void testMozilla()
+ {
+ Security.addProvider(new BouncyCastleProvider());
+
+ org.bouncycastle.util.test.Test[] tests = new org.bouncycastle.util.test.Test[] { new SPKACTest() };
+
+ for (int i = 0; i != tests.length; i++)
+ {
+ SimpleTestResult result = (SimpleTestResult)tests[i].perform();
+
+ if (!result.isSuccessful())
+ {
+ fail(result.toString());
+ }
+ }
+ }
+
+ public static void main (String[] args)
+ {
+ junit.textui.TestRunner.run(suite());
+ }
+
+ public static Test suite()
+ {
+ TestSuite suite = new TestSuite("Mozilla Tests");
+
+ suite.addTestSuite(AllTests.class);
+
+ return suite;
+ }
+}