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 'core/src/test/java/org/spongycastle/math/ec/test/AllTests.java')
-rw-r--r--core/src/test/java/org/spongycastle/math/ec/test/AllTests.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/core/src/test/java/org/spongycastle/math/ec/test/AllTests.java b/core/src/test/java/org/spongycastle/math/ec/test/AllTests.java
new file mode 100644
index 00000000..5388c743
--- /dev/null
+++ b/core/src/test/java/org/spongycastle/math/ec/test/AllTests.java
@@ -0,0 +1,40 @@
+package org.spongycastle.math.ec.test;
+
+import java.util.ArrayList;
+import java.util.Enumeration;
+import java.util.List;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests
+{
+ public static void main (String[] args)
+ throws Exception
+ {
+ junit.textui.TestRunner.run(suite());
+ }
+
+ public static Test suite()
+ throws Exception
+ {
+ TestSuite suite = new TestSuite("EC Math tests");
+
+ suite.addTest(ECAlgorithmsTest.suite());
+ suite.addTest(ECPointTest.suite());
+
+ return suite;
+ }
+
+ static List enumToList(Enumeration en)
+ {
+ List rv = new ArrayList();
+
+ while (en.hasMoreElements())
+ {
+ rv.add(en.nextElement());
+ }
+
+ return rv;
+ }
+}