org.bouncycastle.util.test

Class SimpleTest

Implemented Interfaces:
Test
Known Direct Subclasses:
AESSICTest, AlgorithmParametersTest, AttrCertSelectorTest, BaseBlockCipherTest, BlockCipherTest, CertPathTest, CertPathValidatorTest, CertStoreTest, CipherStreamTest, DESedeTest, DigestTest, DSATest, ECEncodingTest, ECNRTest, ElGamalTest, GOST28147Test, HMacTest, IESTest, ImplicitlyCaTest, MacTest, MultiCertStoreTest, NISTCertPathTest, OCSPTest, PBETest, PKCS12StoreTest, PKIXNameConstraintsTest, PKIXPolicyMappingTest, ReaderTest, RSATest, SerialisationTest, SigTest, SlotTwoTest, WriterTest, X509CertificatePairTest, X509LDAPCertStoreTest, X509StoreTest, X509StreamParserTest

public abstract class SimpleTest
extends java.lang.Object
implements Test

Method Summary

protected boolean
areEqual(byte[] a, byte[] b)
protected void
fail(String message)
protected void
fail(String message, Object expected, Object found)
protected void
fail(String message, Throwable throwable)
abstract String
getName()
TestResult
perform()
abstract void
performTest()
protected static void
runTest(Test test)
protected static void
runTest(Test test, PrintStream out)

Method Details

areEqual

protected boolean areEqual(byte[] a,
                           byte[] b)

fail

protected void fail(String message)

fail

protected void fail(String message,
                    Object expected,
                    Object found)

fail

protected void fail(String message,
                    Throwable throwable)

getName

public abstract String getName()
Specified by:
getName in interface Test

perform

public TestResult perform()
Specified by:
perform in interface Test

performTest

public abstract void performTest()
            throws Exception

runTest

protected static void runTest(Test test)

runTest

protected static void runTest(Test test,
                              PrintStream out)