|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junitx.ddtunit.data.TypedObject junitx.ddtunit.data.AssertObject junitx.ddtunit.data.ObjectAsserter
public class ObjectAsserter
Class contains all information to execute an assert action between actual and expected object.
Field Summary | |
---|---|
static String |
ASSERT_ACTION_ISCONTAINEDIN
|
static String |
ASSERT_ACTION_ISEQUAL
defines equals action analogue to JUnit assertEquals |
static String |
ASSERT_ACTION_ISFALSE
|
static String |
ASSERT_ACTION_ISGT
|
static String |
ASSERT_ACTION_ISINRANGE
|
static String |
ASSERT_ACTION_ISLT
|
static String |
ASSERT_ACTION_ISNOTCONTAINEDIN
|
static String |
ASSERT_ACTION_ISNOTEQUAL
defines equals action analogue to JUnit assertEquals |
static String |
ASSERT_ACTION_ISNOTGT
|
static String |
ASSERT_ACTION_ISNOTINRANGE
|
static String |
ASSERT_ACTION_ISNOTLT
|
static String |
ASSERT_ACTION_ISNOTNULL
defines equals action analogue to JUnit assertEquals |
static String |
ASSERT_ACTION_ISNOTSAME
defines equals action analogue to JUnit assertEquals |
static String |
ASSERT_ACTION_ISNULL
defines equals action analogue to JUnit assertEquals |
static String |
ASSERT_ACTION_ISSAME
defines equals action analogue to JUnit assertSame |
static String |
ASSERT_ACTION_ISTRUE
|
Fields inherited from class junitx.ddtunit.data.AssertObject |
---|
action, actualObject, actualObjectSet, actualType, markAsProcessed |
Fields inherited from class junitx.ddtunit.data.TypedObject |
---|
UNKNOWN_TYPE |
Constructor Summary | |
---|---|
ObjectAsserter(String id,
String type,
String action)
|
Method Summary | |
---|---|
Object |
clone()
|
boolean |
isValidated()
|
void |
validate(boolean mark)
Validate expected object against actual object using assert action. |
Methods inherited from class junitx.ddtunit.data.AssertObject |
---|
getAction, getActualObject, getActualType, setActualObject, toString |
Methods inherited from class junitx.ddtunit.data.TypedObject |
---|
equals, getId, getType, getValue, hashCode, setId, setType, setValue |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ASSERT_ACTION_ISEQUAL
public static final String ASSERT_ACTION_ISNOTEQUAL
public static final String ASSERT_ACTION_ISSAME
public static final String ASSERT_ACTION_ISNOTSAME
public static final String ASSERT_ACTION_ISNULL
public static final String ASSERT_ACTION_ISNOTNULL
public static final String ASSERT_ACTION_ISTRUE
public static final String ASSERT_ACTION_ISFALSE
public static final String ASSERT_ACTION_ISGT
public static final String ASSERT_ACTION_ISNOTGT
public static final String ASSERT_ACTION_ISLT
public static final String ASSERT_ACTION_ISNOTLT
public static final String ASSERT_ACTION_ISCONTAINEDIN
public static final String ASSERT_ACTION_ISNOTCONTAINEDIN
public static final String ASSERT_ACTION_ISINRANGE
public static final String ASSERT_ACTION_ISNOTINRANGE
Constructor Detail |
---|
public ObjectAsserter(String id, String type, String action)
id
- of asserttype
- of expected objectaction
- to processMethod Detail |
---|
public void validate(boolean mark)
validate
in class AssertObject
mark
- validation if set to true, else reprocessing is possible.public boolean isValidated()
public Object clone()
clone
in class TypedObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |