TestSuite suite = new TestSuite("CMS tests");
suite.addTest(CompressedDataTest.suite());
suite.addTest(SignedDataTest.suite());
suite.addTest(EnvelopedDataTest.suite());
suite.addTest(CompressedDataStreamTest.suite());
suite.addTest(SignedDataStreamTest.suite());
suite.addTest(EnvelopedDataStreamTest.suite());
suite.addTest(MiscDataStreamTest.suite());
try
{
Cipher.getInstance("RSA", "SunJCE");
suite.addTest(SunProviderTest.suite());
suite.addTest(NullProviderTest.suite());
}
catch (Exception e)
{
// ignore
}
return suite;