File tree Expand file tree Collapse file tree
util/src/test/java/org/bouncycastle Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060import org .bouncycastle .asn1 .isismtt .test .ProcurationSyntaxUnitTest ;
6161import org .bouncycastle .asn1 .isismtt .test .RequestedCertificateUnitTest ;
6262import org .bouncycastle .asn1 .isismtt .test .RestrictionUnitTest ;
63- import org .bouncycastle .oer .test .ExpansionTest ;
64- import org .bouncycastle .oer .test .ExtensionTest ;
6563import org .bouncycastle .asn1 .smime .test .SMIMETest ;
6664import org .bouncycastle .util .test .SimpleTest ;
6765import org .bouncycastle .util .test .Test ;
@@ -132,8 +130,6 @@ public class RegressionTest
132130 new RequestedCertificateUnitTest (),
133131 new RestrictionUnitTest (),
134132 new SMIMETest (),
135- new ExpansionTest (),
136- new ExtensionTest (),
137133 };
138134
139135 public static void main (String [] args )
Original file line number Diff line number Diff line change 1+ package org .bouncycastle .oer .test ;
2+
3+ import junit .extensions .TestSetup ;
4+ import junit .framework .Test ;
5+ import junit .framework .TestCase ;
6+ import junit .framework .TestSuite ;
7+ import org .bouncycastle .util .test .SimpleTestResult ;
8+
9+ public class AllTests
10+ extends TestCase
11+ {
12+ public void testASN1 ()
13+ {
14+ org .bouncycastle .util .test .Test [] tests = RegressionTest .tests ;
15+
16+ for (int i = 0 ; i != tests .length ; i ++)
17+ {
18+ SimpleTestResult result = (SimpleTestResult )tests [i ].perform ();
19+
20+ if (!result .isSuccessful ())
21+ {
22+ fail (result .toString ());
23+ }
24+ }
25+ }
26+
27+ public static void main (String [] args )
28+ {
29+ junit .textui .TestRunner .run (suite ());
30+ }
31+
32+ public static Test suite ()
33+ {
34+ TestSuite suite = new TestSuite ("ASN.1 Tests" );
35+
36+ suite .addTestSuite (AllTests .class );
37+
38+ return new BCTestSetup (suite );
39+ }
40+
41+ static class BCTestSetup
42+ extends TestSetup
43+ {
44+ public BCTestSetup (Test test )
45+ {
46+ super (test );
47+ }
48+
49+ protected void setUp ()
50+ {
51+
52+ }
53+
54+ protected void tearDown ()
55+ {
56+
57+ }
58+ }
59+ }
Original file line number Diff line number Diff line change 1+ package org .bouncycastle .oer .test ;
2+
3+ import org .bouncycastle .util .test .SimpleTest ;
4+ import org .bouncycastle .util .test .Test ;
5+
6+ public class RegressionTest
7+ {
8+ public static Test [] tests = {
9+ new ExpansionTest (),
10+ new ExtensionTest (),
11+ };
12+
13+ public static void main (String [] args )
14+ {
15+ SimpleTest .runTests (tests );
16+ }
17+ }
You can’t perform that action at this time.
0 commit comments