Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- actual - Variable in exception class org.opentest4j.AssertionFailedError
- AssertionFailedError - Exception Class in org.opentest4j
-
AssertionFailedError
is a common base class for test-relatedAssertionErrors
. - AssertionFailedError() - Constructor for exception class org.opentest4j.AssertionFailedError
-
Constructs an
AssertionFailedError
with an empty message, no cause, and no expected/actual values. - AssertionFailedError(String) - Constructor for exception class org.opentest4j.AssertionFailedError
-
Constructs an
AssertionFailedError
with a message, no cause, and no expected/actual values. - AssertionFailedError(String, Object, Object) - Constructor for exception class org.opentest4j.AssertionFailedError
-
Constructs an
AssertionFailedError
with a message and expected/actual values but without a cause. - AssertionFailedError(String, Object, Object, Throwable) - Constructor for exception class org.opentest4j.AssertionFailedError
-
Constructs an
AssertionFailedError
with a message, expected/actual values, and a cause. - AssertionFailedError(String, Throwable) - Constructor for exception class org.opentest4j.AssertionFailedError
-
Constructs an
AssertionFailedError
with a message and a cause but without expected/actual values. - AssertionFailedError(String, ValueWrapper, ValueWrapper, Throwable) - Constructor for exception class org.opentest4j.AssertionFailedError
C
- contents - Variable in class org.opentest4j.FileInfo
- create(Object) - Static method in class org.opentest4j.ValueWrapper
-
Factory for creating a new
ValueWrapper
for the suppliedvalue
. - create(Object, String) - Static method in class org.opentest4j.ValueWrapper
-
Factory for creating a new
ValueWrapper
for the suppliedvalue
using the supplied customstringRepresentation
.
E
- EOL - Static variable in exception class org.opentest4j.MultipleFailuresError
- ephemeralValue - Variable in class org.opentest4j.ValueWrapper
- equals(Object) - Method in class org.opentest4j.FileInfo
-
Determines if the supplied object is an instance of
FileInfo
with the same path and contents as thisFileInfo
. - expected - Variable in exception class org.opentest4j.AssertionFailedError
F
- failures - Variable in exception class org.opentest4j.MultipleFailuresError
- FileInfo - Class in org.opentest4j
-
FileInfo
is a pair of a file path and the contents of the file. - FileInfo(String, byte[]) - Constructor for class org.opentest4j.FileInfo
-
Constructs a
FileInfo
with a path to a file and the contents of the file.
G
- getActual() - Method in exception class org.opentest4j.AssertionFailedError
-
Returns the wrapped actual value if it is defined; otherwise
null
. - getContents() - Method in class org.opentest4j.FileInfo
-
Returns the contents of the file.
- getContentsAsString(Charset) - Method in class org.opentest4j.FileInfo
-
Returns the contents of the file as a
String
. - getEphemeralValue() - Method in class org.opentest4j.ValueWrapper
-
Returns the original value supplied to
create()
. - getExpected() - Method in exception class org.opentest4j.AssertionFailedError
-
Returns the wrapped expected value if it is defined; otherwise
null
. - getFailures() - Method in exception class org.opentest4j.MultipleFailuresError
-
Returns the list of failures contained in this error.
- getIdentityHashCode() - Method in class org.opentest4j.ValueWrapper
-
Returns the value's identity hash code.
- getMessage() - Method in exception class org.opentest4j.MultipleFailuresError
- getPath() - Method in class org.opentest4j.FileInfo
-
Returns the path to the file.
- getStringRepresentation() - Method in class org.opentest4j.ValueWrapper
-
Returns the value's string representation.
- getType() - Method in class org.opentest4j.ValueWrapper
-
Returns the value's runtime type or
null
if the value isnull
. - getValue() - Method in class org.opentest4j.ValueWrapper
-
Returns the value supplied to
ValueWrapper.create(Object)
if the value implementsSerializable
; otherwise,null
.
H
- hasFailures() - Method in exception class org.opentest4j.MultipleFailuresError
-
Returns whether this error contains any failures.
- hashCode() - Method in class org.opentest4j.FileInfo
-
Generates a unique hash code for this
FileInfo
based on itspath
. - heading - Variable in exception class org.opentest4j.MultipleFailuresError
I
- identityHashCode - Variable in class org.opentest4j.ValueWrapper
- IncompleteExecutionException - Exception Class in org.opentest4j
-
RuntimeException
used to indicate that the execution of a test was incomplete — for example, that the execution was entirely skipped or aborted mid-stream. - IncompleteExecutionException() - Constructor for exception class org.opentest4j.IncompleteExecutionException
- IncompleteExecutionException(String) - Constructor for exception class org.opentest4j.IncompleteExecutionException
- IncompleteExecutionException(String, Throwable) - Constructor for exception class org.opentest4j.IncompleteExecutionException
- isActualDefined() - Method in exception class org.opentest4j.AssertionFailedError
-
Returns
true
if an actual value was supplied via an appropriate constructor. - isBlank(String) - Static method in exception class org.opentest4j.MultipleFailuresError
- isExpectedDefined() - Method in exception class org.opentest4j.AssertionFailedError
-
Returns
true
if an expected value was supplied via an appropriate constructor.
M
- MultipleFailuresError - Exception Class in org.opentest4j
-
MultipleFailuresError
is anAssertionError
that aggregates multiple failures thrown in a given context (i.e., typically within the invocation of a single test). - MultipleFailuresError(String, List<? extends Throwable>) - Constructor for exception class org.opentest4j.MultipleFailuresError
-
Constructs an
MultipleFailuresError
with the supplied heading and failures.
N
- NO_CAUSE - Static variable in exception class org.opentest4j.AssertionFailedError
- nullSafeMessage(Throwable) - Static method in exception class org.opentest4j.MultipleFailuresError
- nullValueWrapper - Static variable in class org.opentest4j.ValueWrapper
O
- org.opentest4j - module org.opentest4j
- org.opentest4j - package org.opentest4j
-
Common
AssertionErrors
andRuntimeExceptions
for testing frameworks on the JVM.
P
- path - Variable in class org.opentest4j.FileInfo
- pluralize(int, String, String) - Static method in exception class org.opentest4j.MultipleFailuresError
S
- safeValueToString(Object) - Static method in class org.opentest4j.ValueWrapper
- serialVersionUID - Static variable in exception class org.opentest4j.AssertionFailedError
- serialVersionUID - Static variable in class org.opentest4j.FileInfo
- serialVersionUID - Static variable in exception class org.opentest4j.IncompleteExecutionException
- serialVersionUID - Static variable in exception class org.opentest4j.MultipleFailuresError
- serialVersionUID - Static variable in exception class org.opentest4j.TestAbortedException
- serialVersionUID - Static variable in exception class org.opentest4j.TestSkippedException
- serialVersionUID - Static variable in class org.opentest4j.ValueWrapper
- stringRepresentation - Variable in class org.opentest4j.ValueWrapper
T
- TestAbortedException - Exception Class in org.opentest4j
-
Specialization of
IncompleteExecutionException
used to indicate that a test was aborted during execution (e.g., due to a failed assumption). - TestAbortedException() - Constructor for exception class org.opentest4j.TestAbortedException
- TestAbortedException(String) - Constructor for exception class org.opentest4j.TestAbortedException
- TestAbortedException(String, Throwable) - Constructor for exception class org.opentest4j.TestAbortedException
- TestSkippedException - Exception Class in org.opentest4j
-
Specialization of
IncompleteExecutionException
used to indicate that a test was skipped prior to execution (e.g., disabled or ignored). - TestSkippedException() - Constructor for exception class org.opentest4j.TestSkippedException
- TestSkippedException(String) - Constructor for exception class org.opentest4j.TestSkippedException
- TestSkippedException(String, Throwable) - Constructor for exception class org.opentest4j.TestSkippedException
- toString() - Method in exception class org.opentest4j.AssertionFailedError
-
Returns a short description of this assertion error using the same format as
Throwable.toString()
. - toString() - Method in class org.opentest4j.FileInfo
- toString() - Method in class org.opentest4j.ValueWrapper
-
Returns the value's string representation along with its type and identity hash code.
- type - Variable in class org.opentest4j.ValueWrapper
V
- validatePath(String) - Static method in class org.opentest4j.FileInfo
- value - Variable in class org.opentest4j.ValueWrapper
- ValueWrapper - Class in org.opentest4j
-
Serializable representation of a value that was used in an assertion.
- ValueWrapper(Object) - Constructor for class org.opentest4j.ValueWrapper
- ValueWrapper(Object, String) - Constructor for class org.opentest4j.ValueWrapper
-
Reads and stores the supplied value's runtime type, string representation, and identity hash code.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form