org.bouncycastle.crypto.test.SimpleTestTest Maven / Gradle / Ivy
package org.bouncycastle.crypto.test;
import junit.framework.TestCase;
import org.bouncycastle.util.test.SimpleTestResult;
public class SimpleTestTest
extends TestCase
{
public void testCrypto()
{
org.bouncycastle.util.test.Test[] tests = RegressionTest.tests;
for (int i = 0; i != tests.length; i++)
{
SimpleTestResult result = (SimpleTestResult)tests[i].perform();
if (!result.isSuccessful())
{
if (result.getException() != null)
{
result.getException().printStackTrace();
}
fail(result.toString());
}
}
}
}