Top Fields Constructors Methods
org.bouncycastle.util.test

public Class SimpleTestResult

extends Object
implements TestResult
Class Inheritance
All Implemented Interfaces
org.bouncycastle.util.test.TestResult
Imports
org.bouncycastle.util.Strings

Field Summary

Modifier and TypeField and Description
private Throwable
private String
private static final String
private boolean

Constructor Summary

AccessConstructor and Description
public
SimpleTestResult(boolean success, String message)

public
SimpleTestResult(boolean success, String message, Throwable exception)

Method Summary

Modifier and TypeMethod and Description
public static TestResult
failed(Test test, String message)

public static TestResult
failed(Test test, String message, Throwable t)

public static TestResult
failed(Test test, String message, Object expected, Object found)

public static String
failedMessage(String algorithm, String testName, String expected, String actual)

public Throwable
public boolean
public static TestResult
successful(Test test, String message)

public String
toString()

Overrides java.lang.Object.toString.

Implements org.bouncycastle.util.test.TestResult.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

exceptionback to summary
private Throwable exception
messageback to summary
private String message
SEPARATORback to summary
private static final String SEPARATOR
successback to summary
private boolean success

Constructor Detail

SimpleTestResultback to summary
public SimpleTestResult(boolean success, String message)
SimpleTestResultback to summary
public SimpleTestResult(boolean success, String message, Throwable exception)

Method Detail

failedback to summary
public static TestResult failed(Test test, String message)
failedback to summary
public static TestResult failed(Test test, String message, Throwable t)
failedback to summary
public static TestResult failed(Test test, String message, Object expected, Object found)
failedMessageback to summary
public static String failedMessage(String algorithm, String testName, String expected, String actual)
getExceptionback to summary
public Throwable getException()

Implements org.bouncycastle.util.test.TestResult.getException.

isSuccessfulback to summary
public boolean isSuccessful()

Implements org.bouncycastle.util.test.TestResult.isSuccessful.

successfulback to summary
public static TestResult successful(Test test, String message)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements org.bouncycastle.util.test.TestResult.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object