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