public class AssertEqualsException extends AssertException
assertEquals
fails.Modifier and Type | Field and Description |
---|---|
static String |
ASSERTION_TYPE |
protected Object |
cmp
Objects which should have be equal
|
static String |
ENTRY_KEY_CMP_OBJECT |
static String |
ENTRY_KEY_REF_OBJECT |
protected Object |
ref
Objects which should have be equal
|
ENTRY_KEY_ASSERTION_TYPE
errorCode
Constructor and Description |
---|
AssertEqualsException(Object ref,
Object cmp) |
Modifier and Type | Method and Description |
---|---|
void |
addDescription(TestReport report)
Requests that the exception populates the TestReport with the
relevant information.
|
String |
getAssertionType()
Returns the type of assertion which failed.
|
getTestReport
addStackTraceDescription
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String ENTRY_KEY_REF_OBJECT
public static final String ENTRY_KEY_CMP_OBJECT
public static final String ASSERTION_TYPE
protected Object ref
protected Object cmp
public void addDescription(TestReport report)
addDescription
in class AssertException
public String getAssertionType()
AssertException
getAssertionType
in class AssertException
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.