Package org.unitils.inject.util
Class ValueToRestore
- java.lang.Object
-
- org.unitils.inject.util.ValueToRestore
-
public class ValueToRestore extends Object
Class for holding values that need to be restored after a test was performed. It also contains information on how and where the value needs to be restored.- Author:
- Filip Neven, Tim Ducheyne
-
-
Constructor Summary
Constructors Constructor Description ValueToRestore(Class<?> targetClass, String property, Class<?> fieldType, PropertyAccess propertyAccess, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getFieldType()StringgetProperty()PropertyAccessgetPropertyAccessType()Class<?>getTargetClass()ObjectgetValue()
-
-
-
Constructor Detail
-
ValueToRestore
public ValueToRestore(Class<?> targetClass, String property, Class<?> fieldType, PropertyAccess propertyAccess, Object value)
-
-
Method Detail
-
getTargetClass
public Class<?> getTargetClass()
-
getProperty
public String getProperty()
-
getFieldType
public Class<?> getFieldType()
-
getPropertyAccessType
public PropertyAccess getPropertyAccessType()
-
getValue
public Object getValue()
-
-