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.TestContextManager getTestContextManager​(java.lang.Class<?> clazz)  
    void injectDependenciesInto​(java.lang.Object target)
    Setup Spring dependencies in a step library, based on the Spring ContextConfiguration annotation.
    void reset()  

    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:
      injectDependenciesInto in interface DependencyInjector
      Parameters:
      target -
    • reset

      public void reset()
      Specified by:
      reset in interface DependencyInjector
    • getTestContextManager

      protected org.springframework.test.context.TestContextManager getTestContextManager​(java.lang.Class<?> clazz)