diff options
Diffstat (limited to 'core/src/test/jdk1.4/org/spongycastle/asn1/test/AllTests.java')
-rw-r--r-- | core/src/test/jdk1.4/org/spongycastle/asn1/test/AllTests.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/core/src/test/jdk1.4/org/spongycastle/asn1/test/AllTests.java b/core/src/test/jdk1.4/org/spongycastle/asn1/test/AllTests.java new file mode 100644 index 00000000..ca75ad28 --- /dev/null +++ b/core/src/test/jdk1.4/org/spongycastle/asn1/test/AllTests.java @@ -0,0 +1,42 @@ +package org.spongycastle.asn1.test; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; +import org.spongycastle.util.test.SimpleTestResult; + +public class AllTests + extends TestCase +{ + public void testASN1() + { + 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("ASN.1 Tests"); + + suite.addTestSuite(AllTests.class); + suite.addTestSuite(ASN1SequenceParserTest.class); + suite.addTestSuite(OctetStringTest.class); + suite.addTestSuite(ParseTest.class); + + return suite; + } +} |