com.tngtech.jgiven.impl.inject
Class ValueInjector
java.lang.Object
com.tngtech.jgiven.impl.inject.ValueInjector
public class ValueInjector
- extends Object
Used by Scenario to inject and read values from objects.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueInjector
public ValueInjector()
validateFields
public void validateFields(Object object)
- Throws:
AmbiguousResolutionException
- when multiple fields with the same resolution exist in the given object
readValues
public void readValues(Object object)
updateValues
public void updateValues(Object object)
injectValueByType
public <T> void injectValueByType(Class<T> clazz,
T value)
injectValueByName
public <T> void injectValueByName(String name,
T value)
Copyright © 2014 TNG Technology Consulting. All rights reserved.