Package net.serenitybdd.core.di
Class SpringDependencyInjector
java.lang.Object
net.serenitybdd.core.di.SpringDependencyInjector
- All Implemented Interfaces:
DependencyInjector
public class SpringDependencyInjector extends java.lang.Object implements DependencyInjector
-
Constructor Summary
Constructors Constructor Description SpringDependencyInjector() -
Method Summary
Modifier and Type Method Description protected org.springframework.test.context.TestContextManagergetTestContextManager(java.lang.Class<?> clazz)voidinjectDependenciesInto(java.lang.Object target)Setup Spring dependencies in a step library, based on the Spring ContextConfiguration annotation.voidreset()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SpringDependencyInjector
public SpringDependencyInjector()
-
-
Method Details
-
injectDependenciesInto
public void injectDependenciesInto(java.lang.Object target)Setup Spring dependencies in a step library, based on the Spring ContextConfiguration annotation.- Specified by:
injectDependenciesIntoin interfaceDependencyInjector- Parameters:
target-
-
reset
public void reset()- Specified by:
resetin interfaceDependencyInjector
-
getTestContextManager
protected org.springframework.test.context.TestContextManager getTestContextManager(java.lang.Class<?> clazz)
-