Package org.bouncycastle.util.test
Class SimpleTest
java.lang.Object
org.bouncycastle.util.test.SimpleTest
- All Implemented Interfaces:
Test
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
areEqual
(byte[][] left, byte[][] right) protected boolean
areEqual
(byte[] a, byte[] b) protected boolean
areEqual
(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) protected void
protected void
protected void
abstract String
getName()
protected void
isEquals
(boolean a, boolean b) protected void
isEquals
(int a, int b) protected void
isEquals
(long a, long b) protected void
protected void
protected void
protected void
protected void
isTrue
(boolean value) protected void
perform()
abstract void
static void
static void
runTest
(Test test, PrintStream out) static void
static void
runTests
(Test[] tests, PrintStream out) protected Exception
testException
(String failMessage, String exceptionClass, SimpleTest.TestExceptionOperation operation)
-
Constructor Details
-
SimpleTest
public SimpleTest()
-
-
Method Details
-
getName
-
fail
-
isTrue
protected void isTrue(boolean value) -
isTrue
-
isEquals
-
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
-
isEquals
-
isEquals
-
areEqual
protected boolean areEqual(byte[][] left, byte[][] right) -
fail
-
fail
-
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
-
performTest
- Throws:
Exception
-
runTest
-
runTest
-
runTests
-
runTests
-
testException
protected Exception testException(String failMessage, String exceptionClass, SimpleTest.TestExceptionOperation operation)
-