junitx.ddtunit.data
Class AssertObject
java.lang.Object
junitx.ddtunit.data.TypedObject
junitx.ddtunit.data.AssertObject
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- ExceptionAsserter, ObjectAsserter
public abstract class AssertObject
- extends TypedObject
- Author:
- jg
action
protected String action
actualObject
protected Object actualObject
actualType
protected String actualType
actualObjectSet
protected boolean actualObjectSet
markAsProcessed
protected boolean markAsProcessed
AssertObject
public AssertObject(String id,
String type,
String action)
- Parameters:
id
- type
-
validate
public abstract void validate(boolean mark)
- Process assertion specified in this object. Should throw exception on
assert failure.
getAction
public String getAction()
getActualObject
public Object getActualObject()
setActualObject
public void setActualObject(Object actualObject)
- Associate actual and expected object.
If actual and expected object
are not of same class type an exception is thrown
- Parameters:
actualObject
-
getActualType
protected String getActualType()
- Returns:
toString
public String toString()
- Overrides:
toString
in class TypedObject
Copyright © 2004-2011. All Rights Reserved.