01: package org.bouncycastle.cms.test;
02:
03: import junit.framework.Test;
04: import junit.framework.TestSuite;
05:
06: import javax.crypto.Cipher;
07:
08: public class AllTests {
09: public static void main(String[] args) throws Exception {
10: junit.textui.TestRunner.run(suite());
11: }
12:
13: public static Test suite() throws Exception {
14: TestSuite suite = new TestSuite("CMS tests");
15:
16: suite.addTest(CompressedDataTest.suite());
17: suite.addTest(SignedDataTest.suite());
18: suite.addTest(EnvelopedDataTest.suite());
19:
20: suite.addTest(CompressedDataStreamTest.suite());
21: suite.addTest(SignedDataStreamTest.suite());
22: suite.addTest(EnvelopedDataStreamTest.suite());
23:
24: try {
25: Cipher.getInstance("RSA", "SunJCE");
26:
27: suite.addTest(SunProviderTest.suite());
28: suite.addTest(NullProviderTest.suite());
29: } catch (Exception e) {
30: // ignore
31: }
32:
33: return suite;
34: }
35: }
|