public abstract class AbstractAssertionFailedError extends AppError
AssertionFailedError
and AssertionFailedError.| Modifier and Type | Field and Description |
|---|---|
private BaseDataType |
actual
The actual value if was set in the object constructor, otherwise
null |
private BaseDataType |
expected
The expected value if was set in the object constructor, otherwise
null |
protected java.lang.String |
msg
The failure message or
null if no message was set. |
| Constructor and Description |
|---|
AbstractAssertionFailedError()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
constructor(character msgtxt,
BaseDataType expected,
BaseDataType actual)
Initialize using the message describing the failure, the expected and actual values.
|
BaseDataType |
getActual()
Get the actual value, if set.
|
BaseDataType |
getExpected()
Get the expected value, if set.
|
character |
getMessage()
Get failure message.
|
java.lang.String |
getMessageInt()
Access the message string directly.
|
void |
readExternal(java.io.ObjectInput in)
The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays.
|
void |
writeExternal(java.io.ObjectOutput out)
The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays.
|
__lang_AppError_constructor__, __lang_AppError_constructor__, __lang_AppError_constructor__, addMessage, getReturnValue, isFromReturn, newInstance, newInstance, newInstance, removeMessage, setFromReturn, setReturnValue__lang_ProError_constructor__, __lang_ProError_constructor__, getCallStack, getMessage, getMessageNum, getNumMessages, getSeverity, populateCallStack, setSeverity, validIndex__isValidInternal__, __lang_BaseObject_constructor__, __setValidInternal__, assertNotNull, assertNotNull, getLegacyClass, getNextSibling, getPrevSibling, legacyClone, legacyEquals, toLegacyStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait__isValidInternal__, __lang_BaseObject_constructor__, __setValidInternal__, getLegacyClass, getNextSibling, getPrevSibling, isTracked, legacyClone, legacyEquals, toLegacyStringprivate BaseDataType actual
nullprivate BaseDataType expected
nullprotected java.lang.String msg
null if no message was set.public AbstractAssertionFailedError()
public BaseDataType getActual()
null.
Note: the caller must not modify the contents of the returned object.
public BaseDataType getExpected()
null.
Note: the caller must not modify the contents of the returned object.
public character getMessage()
public java.lang.String getMessageInt()
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class AppErrorin - the stream to read data from in order to restore the objectjava.io.IOException - if I/O errors occurjava.lang.ClassNotFoundException - If the class for an object being
restored cannot be found.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class AppErrorout - the stream to write the object tojava.io.IOException - Includes any I/O exceptions that may occurprotected final void constructor(character msgtxt, BaseDataType expected, BaseDataType actual)
msgtxt - the messageexpected - the expected value, must not be nullactual - the actual value, must not be null