org.bouncycastle.util.test
Class SimpleTest
java.lang.Object
  
org.bouncycastle.util.test.SimpleTest
- All Implemented Interfaces: 
 - Test
 
- Direct Known Subclasses: 
 - BlockCipherMonteCarloTest, BlockCipherVectorTest, CipherTest, CTSTest, DHTest, DigestTest, DSATest, ECGOST3410Test, ECIESTest, ECNRTest, ECTest, ElGamalTest, ISO9796Test, ISO9797Alg3MacTest, MacTest, MD5HMacTest, RC4Test, StreamCipherVectorTest, WhirlpoolDigestTest
 
- public abstract class SimpleTest
- extends java.lang.Object
- implements Test
   
 
| 
Method Summary | 
protected  boolean | 
areEqual(byte[] a,
         byte[] b)
 
            | 
protected  void | 
fail(java.lang.String message)
 
            | 
protected  void | 
fail(java.lang.String message,
     java.lang.Object expected,
     java.lang.Object found)
 
            | 
protected  void | 
fail(java.lang.String message,
     java.lang.Throwable throwable)
 
            | 
abstract  java.lang.String | 
getName()
 
            | 
 TestResult | 
perform()
 
            | 
abstract  void | 
performTest()
 
            | 
protected static void | 
runTest(Test test)
 
            | 
protected static void | 
runTest(Test test,
        java.io.PrintStream out)
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SimpleTest
public SimpleTest()
getName
public abstract java.lang.String getName()
- Specified by:
 getName in interface Test
 
 
fail
protected void fail(java.lang.String message)
 
 
fail
protected void fail(java.lang.String message,
                    java.lang.Throwable throwable)
 
 
fail
protected void fail(java.lang.String message,
                    java.lang.Object expected,
                    java.lang.Object found)
 
 
areEqual
protected boolean areEqual(byte[] a,
                           byte[] b)
 
 
perform
public TestResult perform()
- Specified by:
 perform in interface Test
 
 
runTest
protected static void runTest(Test test)
 
 
runTest
protected static void runTest(Test test,
                              java.io.PrintStream out)
 
 
performTest
public abstract void performTest()
                          throws java.lang.Exception
 
- Throws:
 java.lang.Exception