01: package org.bouncycastle.asn1.test;
02:
03: import org.bouncycastle.util.test.SimpleTestResult;
04:
05: import junit.framework.*;
06:
07: public class AllTests extends TestCase {
08: public void testASN1() {
09: org.bouncycastle.util.test.Test[] tests = RegressionTest.tests;
10:
11: for (int i = 0; i != tests.length; i++) {
12: SimpleTestResult result = (SimpleTestResult) tests[i]
13: .perform();
14:
15: if (!result.isSuccessful()) {
16: fail(result.toString());
17: }
18: }
19: }
20:
21: public static void main(String[] args) {
22: junit.textui.TestRunner.run(suite());
23: }
24:
25: public static Test suite() {
26: TestSuite suite = new TestSuite("ASN.1 Tests");
27:
28: suite.addTestSuite(AllTests.class);
29: suite.addTestSuite(ASN1SequenceParserTest.class);
30: suite.addTestSuite(OctetStringTest.class);
31: suite.addTestSuite(ParseTest.class);
32:
33: return suite;
34: }
35: }
|