org.unitils.inject.util
Class ValueToRestore

java.lang.Object
  extended by 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
ValueToRestore(Class<?> targetClass, String property, Class<?> fieldType, PropertyAccess propertyAccess, Object value)
           
 
Method Summary
 Class<?> getFieldType()
           
 String getProperty()
           
 PropertyAccess getPropertyAccessType()
           
 Class<?> getTargetClass()
           
 Object getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()


Copyright © 2011. All Rights Reserved.