Package org.everrest.assured
Class TestResourceFactory<T extends ObjectModel>
- java.lang.Object
-
- org.everrest.assured.TestResourceFactory<T>
-
- All Implemented Interfaces:
ObjectFactory
public class TestResourceFactory<T extends ObjectModel> extends Object implements ObjectFactory
Get instance of the REST resource from test class in request time.
-
-
Constructor Summary
Constructors Constructor Description TestResourceFactory(T model, Object testParent, Field resourceField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetInstance(ApplicationContext context)TgetObjectModel()
-
-
-
Method Detail
-
getInstance
public Object getInstance(ApplicationContext context)
- Specified by:
getInstancein interfaceObjectFactory<T extends ObjectModel>- See Also:
ObjectFactory.getInstance(org.everrest.core.ApplicationContext)
-
getObjectModel
public T getObjectModel()
- Specified by:
getObjectModelin interfaceObjectFactory<T extends ObjectModel>- See Also:
ObjectFactory.getObjectModel()
-
-