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 'pg/src/test/java/org/spongycastle/openpgp/test/AllTests.java')
-rw-r--r--pg/src/test/java/org/spongycastle/openpgp/test/AllTests.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/pg/src/test/java/org/spongycastle/openpgp/test/AllTests.java b/pg/src/test/java/org/spongycastle/openpgp/test/AllTests.java
new file mode 100644
index 00000000..81bfa301
--- /dev/null
+++ b/pg/src/test/java/org/spongycastle/openpgp/test/AllTests.java
@@ -0,0 +1,46 @@
+package org.spongycastle.openpgp.test;
+
+import java.security.Security;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+import org.spongycastle.jce.provider.BouncyCastleProvider;
+import org.spongycastle.util.test.SimpleTestResult;
+
+public class AllTests
+ extends TestCase
+{
+ public void testPGP()
+ {
+ Security.addProvider(new BouncyCastleProvider());
+
+ org.spongycastle.util.test.Test[] tests = RegressionTest.tests;
+
+ 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("OpenPGP Tests");
+
+ suite.addTestSuite(AllTests.class);
+ suite.addTestSuite(DSA2Test.class);
+ suite.addTestSuite(PGPUnicodeTest.class);
+
+ return suite;
+ }
+}