public class IlrRBTTestReport
extends ilog.rules.dvs.common.output.impl.IlrTestResultImpl
IlrRBTTestReport represents a report element for a given test.
For rule based testing, one instance of this class is created for each
test rule fired.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COLLECTION_EQUALS_ORDERED_FAILURE_MESSAGE_KEY
Key of the message that signals the failure of an
equals ordered test on a collection |
static java.lang.String |
COLLECTION_EQUALS_ORDERED_SUCCESS_MESSAGE_KEY
Key of the message that signals the success of an
equals ordered test on a collection |
static java.lang.String |
COLLECTION_EQUALS_UNORDERED_FAILURE_MESSAGE_KEY
Key of the message that signals the failure of an
equals unordered test on a collection |
static java.lang.String |
COLLECTION_EQUALS_UNORDERED_SUCCESS_MESSAGE_KEY
Key of the message that signals the success of an
equals unordered test on a collection |
static java.lang.String |
CONTAINS_FAILURE_MESSAGE_KEY
Key of the message that signals the failure of a
contains test |
static java.lang.String |
CONTAINS_SUCCESS_MESSAGE_KEY
Key of the message that signals the success of a
contains test |
static java.lang.String |
DOES_NOT_CONTAIN_FAILURE_MESSAGE_KEY
Key of the message that signals the failure of a
does not contain test |
static java.lang.String |
DOES_NOT_CONTAIN_SUCCESS_MESSAGE_KEY
Key of the message that signals the success of a
does not contain test |
static java.lang.String |
DOES_NOT_CONTAINS_FAILURE_MESSAGE_KEY
Deprecated.
|
static java.lang.String |
DOES_NOT_CONTAINS_SUCCESS_MESSAGE_KEY
Deprecated.
|
static java.lang.String |
DOES_NOT_EQUAL_FAILURE_MESSAGE_KEY
Key of the message that signals the failure of a
does not equals test |
static java.lang.String |
DOES_NOT_EQUAL_SUCCESS_MESSAGE_KEY
Key of the message that signals the success of a
does not equals test |
static java.lang.String |
DOES_NOT_EQUALS_FAILURE_MESSAGE_KEY
Deprecated.
|
static java.lang.String |
DOES_NOT_EQUALS_SUCCESS_MESSAGE_KEY
Deprecated.
|
static java.lang.String |
EQUALS_FAILURE_MESSAGE_KEY
Key of the message that signals the failure of an
equals test |
static java.lang.String |
EQUALS_SUCCESS_MESSAGE_KEY
Key of the message that signals the success of an
equals test |
static java.lang.String |
ERROR_MESSAGE
Key of the message that signal that an exception occurred during the execution of a test
|
static java.lang.String |
IS_GREATER_THAN_FAILURE_MESSAGE_KEY
Key of the message that signals the failure of an
is greater than test |
static java.lang.String |
IS_GREATER_THAN_OR_EQUALS_FAILURE_MESSAGE_KEY
Key of the message that signals the failure of an
is greater than or equals test |
static java.lang.String |
IS_GREATER_THAN_OR_EQUALS_SUCCESS_MESSAGE_KEY
Key of the message that signals the success of an
is greater than or equals test |
static java.lang.String |
IS_GREATER_THAN_SUCCESS_MESSAGE_KEY
Key of the message that signals the success of an
is greater than test |
static java.lang.String |
IS_LOWER_THAN_FAILURE_MESSAGE_KEY
Key of the message that signals the failure of an
is lower than test |
static java.lang.String |
IS_LOWER_THAN_OR_EQUALS_FAILURE_MESSAGE_KEY
Key of the message that signals the failure of an
is lower than or equals test |
static java.lang.String |
IS_LOWER_THAN_OR_EQUALS_SUCCESS_MESSAGE_KEY
Key of the message that signals the success of an
is lower than or equals test |
static java.lang.String |
IS_LOWER_THAN_SUCCESS_MESSAGE_KEY
Key of the message that signals the success of an
is lower than test |
static java.lang.String |
MESSAGES_BUNDLE
Path to the resource bundle that defines the test report messages
|
| Modifier | Constructor and Description |
|---|---|
protected |
IlrRBTTestReport(java.lang.String theTestName,
java.lang.String theMessageKey,
java.lang.Object[] theMessageParameters,
IlrTestStatus theStatus,
java.lang.String theLocale)
Create a test report element.
|
protected |
IlrRBTTestReport(java.lang.String theTestName,
java.lang.String theMessageKey,
java.lang.Object[] theMessageParameters,
IlrTestStatus theStatus,
java.lang.Throwable theCause,
java.lang.String theLocale)
Creates a test report element.
|
| Modifier and Type | Method and Description |
|---|---|
static IlrRBTTestReport |
createError(java.lang.String testName,
java.lang.String messageKey,
java.lang.Object[] messageParameters,
java.lang.String messageLocale,
java.lang.Throwable error)
A factory method that creates error elements.
|
static IlrRBTTestReport |
createFailure(java.lang.String testName,
java.lang.String messageKey,
java.lang.Object[] messageParameters,
java.lang.String messageLocale)
A factory method that creates failure elements
|
static IlrRBTTestReport |
createSuccess(java.lang.String testName,
java.lang.String messageKey,
java.lang.Object[] messageParameters,
java.lang.String messageLocale)
A factory method that creates success elements.
|
public static final java.lang.String MESSAGES_BUNDLE
public static final java.lang.String ERROR_MESSAGE
public static final java.lang.String EQUALS_FAILURE_MESSAGE_KEY
equals testpublic static final java.lang.String EQUALS_SUCCESS_MESSAGE_KEY
equals testpublic static final java.lang.String DOES_NOT_EQUALS_FAILURE_MESSAGE_KEY
DOES_NOT_EQUAL_FAILURE_MESSAGE_KEYdoes not equals testpublic static final java.lang.String DOES_NOT_EQUAL_FAILURE_MESSAGE_KEY
does not equals testpublic static final java.lang.String DOES_NOT_EQUALS_SUCCESS_MESSAGE_KEY
DOES_NOT_EQUAL_SUCCESS_MESSAGE_KEYdoes not equals testpublic static final java.lang.String DOES_NOT_EQUAL_SUCCESS_MESSAGE_KEY
does not equals testpublic static final java.lang.String IS_LOWER_THAN_FAILURE_MESSAGE_KEY
is lower than testpublic static final java.lang.String IS_LOWER_THAN_SUCCESS_MESSAGE_KEY
is lower than testpublic static final java.lang.String IS_LOWER_THAN_OR_EQUALS_FAILURE_MESSAGE_KEY
is lower than or equals testpublic static final java.lang.String IS_LOWER_THAN_OR_EQUALS_SUCCESS_MESSAGE_KEY
is lower than or equals testpublic static final java.lang.String IS_GREATER_THAN_FAILURE_MESSAGE_KEY
is greater than testpublic static final java.lang.String IS_GREATER_THAN_SUCCESS_MESSAGE_KEY
is greater than testpublic static final java.lang.String IS_GREATER_THAN_OR_EQUALS_FAILURE_MESSAGE_KEY
is greater than or equals testpublic static final java.lang.String IS_GREATER_THAN_OR_EQUALS_SUCCESS_MESSAGE_KEY
is greater than or equals testpublic static final java.lang.String CONTAINS_FAILURE_MESSAGE_KEY
contains testpublic static final java.lang.String CONTAINS_SUCCESS_MESSAGE_KEY
contains testpublic static final java.lang.String DOES_NOT_CONTAINS_FAILURE_MESSAGE_KEY
DOES_NOT_CONTAIN_FAILURE_MESSAGE_KEYdoes not contain testpublic static final java.lang.String DOES_NOT_CONTAIN_FAILURE_MESSAGE_KEY
does not contain testpublic static final java.lang.String DOES_NOT_CONTAINS_SUCCESS_MESSAGE_KEY
DOES_NOT_CONTAIN_SUCCESS_MESSAGE_KEYdoes not contain testpublic static final java.lang.String DOES_NOT_CONTAIN_SUCCESS_MESSAGE_KEY
does not contain testpublic static final java.lang.String COLLECTION_EQUALS_UNORDERED_FAILURE_MESSAGE_KEY
equals unordered test on a collectionpublic static final java.lang.String COLLECTION_EQUALS_UNORDERED_SUCCESS_MESSAGE_KEY
equals unordered test on a collectionpublic static final java.lang.String COLLECTION_EQUALS_ORDERED_FAILURE_MESSAGE_KEY
equals ordered test on a collectionpublic static final java.lang.String COLLECTION_EQUALS_ORDERED_SUCCESS_MESSAGE_KEY
equals ordered test on a collectionprotected IlrRBTTestReport(java.lang.String theTestName,
java.lang.String theMessageKey,
java.lang.Object[] theMessageParameters,
IlrTestStatus theStatus,
java.lang.String theLocale)
theTestName - The name of the test.theMessageKey - The message key.theMessageParameters - The message parameters.theStatus - The test status.theLocale - The locale for the message in the following format:
[language][_COUNTRY[_variant]]. The tokens between the
brackets [] are optional.protected IlrRBTTestReport(java.lang.String theTestName,
java.lang.String theMessageKey,
java.lang.Object[] theMessageParameters,
IlrTestStatus theStatus,
java.lang.Throwable theCause,
java.lang.String theLocale)
theTestName - The name of the test.theMessageKey - The message key.theMessageParameters - The message parameters.theStatus - The test status.theCause - The cause of the error.theLocale - The locale for the message in the following format:
[language][_COUNTRY[_variant]]. The tokens between the
brackets [] are optional.public static IlrRBTTestReport createFailure(java.lang.String testName, java.lang.String messageKey, java.lang.Object[] messageParameters, java.lang.String messageLocale)
testName - The name of the test.messageKey - The message key.messageParameters - The message parameters.messageLocale - The locale for the message in the following format:
[language][_COUNTRY[_variant]]. The tokens between the
brackets [] are optional.public static IlrRBTTestReport createSuccess(java.lang.String testName, java.lang.String messageKey, java.lang.Object[] messageParameters, java.lang.String messageLocale)
testName - The name of the test.messageKey - The message key.messageParameters - The message parameters.messageLocale - The locale for the message in the following format:
[language][_COUNTRY[_variant]]. The tokens between the
brackets [] are optional.public static IlrRBTTestReport createError(java.lang.String testName, java.lang.String messageKey, java.lang.Object[] messageParameters, java.lang.String messageLocale, java.lang.Throwable error)
testName - The name of the test.messageKey - The message key.messageParameters - The message parameters.messageLocale - The locale for the message in the following format:
[language][_COUNTRY[_variant]]. The tokens between the
brackets [] are optional.error - The error.© Copyright IBM Corp. 1987, 2017