org.unitils.inject.util
Class ValueToRestore

java.lang.Object
  extended by org.unitils.inject.util.ValueToRestore

public class ValueToRestore
extends java.lang.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(java.lang.Class<?> targetClass, java.lang.String property, java.lang.Class<?> fieldType, PropertyAccess propertyAccess, java.lang.Object value)
           
 
Method Summary
 java.lang.Class<?> getFieldType()
           
 java.lang.String getProperty()
           
 PropertyAccess getPropertyAccessType()
           
 java.lang.Class<?> getTargetClass()
           
 java.lang.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(java.lang.Class<?> targetClass,
                      java.lang.String property,
                      java.lang.Class<?> fieldType,
                      PropertyAccess propertyAccess,
                      java.lang.Object value)
Method Detail

getTargetClass

public java.lang.Class<?> getTargetClass()

getProperty

public java.lang.String getProperty()

getFieldType

public java.lang.Class<?> getFieldType()

getPropertyAccessType

public PropertyAccess getPropertyAccessType()

getValue

public java.lang.Object getValue()


Copyright © 2009. All Rights Reserved.