Class SimpleTest

java.lang.Object
org.bouncycastle.util.test.SimpleTest
All Implemented Interfaces:
Test

public abstract class SimpleTest extends Object implements Test
  • Constructor Details

    • SimpleTest

      public SimpleTest()
  • Method Details

    • getName

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

      protected void fail(String message)
    • isTrue

      protected void isTrue(boolean value)
    • isTrue

      protected void isTrue(String message, boolean value)
    • isEquals

      protected void isEquals(Object a, Object b)
    • isEquals

      protected void isEquals(int a, int b)
    • isEquals

      protected void isEquals(long a, long b)
    • isEquals

      protected void isEquals(boolean a, boolean b)
    • isEquals

      protected void isEquals(String message, boolean a, boolean b)
    • isEquals

      protected void isEquals(String message, long a, long b)
    • isEquals

      protected void isEquals(String message, Object a, Object b)
    • areEqual

      protected boolean areEqual(byte[][] left, byte[][] right)
    • fail

      protected void fail(String message, Throwable throwable)
    • fail

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

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

      protected boolean areEqual(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex)
    • perform

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

      public abstract void performTest() throws Exception
      Throws:
      Exception
    • runTest

      public static void runTest(Test test)
    • runTest

      public static void runTest(Test test, PrintStream out)
    • runTests

      public static void runTests(Test[] tests)
    • runTests

      public static void runTests(Test[] tests, PrintStream out)
    • testException

      protected Exception testException(String failMessage, String exceptionClass, SimpleTest.TestExceptionOperation operation)