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 booleanareEqual(byte[][] left, byte[][] right) protected booleanareEqual(byte[] a, byte[] b) protected booleanareEqual(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) protected voidprotected voidprotected voidabstract StringgetName()protected voidisEquals(boolean a, boolean b) protected voidisEquals(int a, int b) protected voidisEquals(long a, long b) protected voidprotected voidprotected voidprotected voidprotected voidisTrue(boolean value) protected voidperform()abstract voidstatic voidstatic voidrunTest(Test test, PrintStream out) static voidstatic voidrunTests(Test[] tests, PrintStream out) protected ExceptiontestException(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)
-