junitx.ddtunit.data
Class ObjectAsserter

java.lang.Object
  extended by junitx.ddtunit.data.TypedObject
      extended by junitx.ddtunit.data.AssertObject
          extended by junitx.ddtunit.data.ObjectAsserter
All Implemented Interfaces:
Cloneable

public class ObjectAsserter
extends AssertObject

Class contains all information to execute an assert action between actual and expected object.

Author:
jg

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

ASSERT_ACTION_ISEQUAL

public static final String ASSERT_ACTION_ISEQUAL
defines equals action analogue to JUnit assertEquals

See Also:
Constant Field Values

ASSERT_ACTION_ISNOTEQUAL

public static final String ASSERT_ACTION_ISNOTEQUAL
defines equals action analogue to JUnit assertEquals

See Also:
Constant Field Values

ASSERT_ACTION_ISSAME

public static final String ASSERT_ACTION_ISSAME
defines equals action analogue to JUnit assertSame

See Also:
Constant Field Values

ASSERT_ACTION_ISNOTSAME

public static final String ASSERT_ACTION_ISNOTSAME
defines equals action analogue to JUnit assertEquals

See Also:
Constant Field Values

ASSERT_ACTION_ISNULL

public static final String ASSERT_ACTION_ISNULL
defines equals action analogue to JUnit assertEquals

See Also:
Constant Field Values

ASSERT_ACTION_ISNOTNULL

public static final String ASSERT_ACTION_ISNOTNULL
defines equals action analogue to JUnit assertEquals

See Also:
Constant Field Values

ASSERT_ACTION_ISTRUE

public static final String ASSERT_ACTION_ISTRUE
See Also:
Constant Field Values

ASSERT_ACTION_ISFALSE

public static final String ASSERT_ACTION_ISFALSE
See Also:
Constant Field Values

ASSERT_ACTION_ISGT

public static final String ASSERT_ACTION_ISGT
See Also:
Constant Field Values

ASSERT_ACTION_ISNOTGT

public static final String ASSERT_ACTION_ISNOTGT
See Also:
Constant Field Values

ASSERT_ACTION_ISLT

public static final String ASSERT_ACTION_ISLT
See Also:
Constant Field Values

ASSERT_ACTION_ISNOTLT

public static final String ASSERT_ACTION_ISNOTLT
See Also:
Constant Field Values

ASSERT_ACTION_ISCONTAINEDIN

public static final String ASSERT_ACTION_ISCONTAINEDIN
See Also:
Constant Field Values

ASSERT_ACTION_ISNOTCONTAINEDIN

public static final String ASSERT_ACTION_ISNOTCONTAINEDIN
See Also:
Constant Field Values

ASSERT_ACTION_ISINRANGE

public static final String ASSERT_ACTION_ISINRANGE
See Also:
Constant Field Values

ASSERT_ACTION_ISNOTINRANGE

public static final String ASSERT_ACTION_ISNOTINRANGE
See Also:
Constant Field Values
Constructor Detail

ObjectAsserter

public ObjectAsserter(String id,
                      String type,
                      String action)
Parameters:
id - of assert
type - of expected object
action - to process
Method Detail

validate

public void validate(boolean mark)
Validate expected object against actual object using assert action.

Specified by:
validate in class AssertObject
Parameters:
mark - validation if set to true, else reprocessing is possible.

isValidated

public boolean isValidated()
Returns:
true if this assertion is allready processed

clone

public Object clone()
Overrides:
clone in class TypedObject


Copyright © 2004-2011. All Rights Reserved.