Class TestContextAdaptor

java.lang.Object
io.cucumber.spring.TestContextAdaptor

class TestContextAdaptor extends Object
  • Field Details

    • monitor

      private static final Object monitor
    • delegate

      private final org.springframework.test.context.TestContextManager delegate
    • applicationContext

      private final org.springframework.context.ConfigurableApplicationContext applicationContext
    • stopInvocations

      private final Deque<Runnable> stopInvocations
    • delegateTestInstance

      private @Nullable Object delegateTestInstance
  • Constructor Details

    • TestContextAdaptor

      TestContextAdaptor(org.springframework.test.context.TestContextManager delegate)
  • Method Details

    • create

      static TestContextAdaptor create(Supplier<org.springframework.test.context.TestContextManager> testContextManagerSupplier, Collection<Class<?>> glueClasses)
    • start

      final void start()
    • notifyContextManagerAboutBeforeTestClass

      private void notifyContextManagerAboutBeforeTestClass()
    • startCucumberTestContext

      private void startCucumberTestContext()
    • createAndPrepareTestInstance

      private void createAndPrepareTestInstance()
    • notifyTestContextManagerAboutBeforeTestMethod

      private void notifyTestContextManagerAboutBeforeTestMethod()
    • registerGlueCodeScope

      private static void registerGlueCodeScope(org.springframework.context.ConfigurableApplicationContext context)
    • notifyTestContextManagerAboutBeforeExecution

      private void notifyTestContextManagerAboutBeforeExecution()
    • getRequiredDelegateTestInstance

      private Object getRequiredDelegateTestInstance()
    • registerStepClassBeanDefinitions

      private static void registerStepClassBeanDefinitions(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Collection<Class<?>> glueClasses)
    • registerStepClassBeanDefinition

      private static void registerStepClassBeanDefinition(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Class<?> glueClass)
    • stop

      final void stop()
    • notifyTestContextManagerAboutAfterTestClass

      private void notifyTestContextManagerAboutAfterTestClass()
    • stopCucumberTestContext

      private void stopCucumberTestContext()
    • disposeTestInstance

      private void disposeTestInstance()
    • notifyTestContextManagerAboutAfterTestMethod

      private void notifyTestContextManagerAboutAfterTestMethod()
    • notifyTestContextManagerAboutAfterTestExecution

      private void notifyTestContextManagerAboutAfterTestExecution()
    • getInstance

      final <T> T getInstance(Class<T> type)
    • getDummyMethod

      private Method getDummyMethod()
    • cucumberDoesNotHaveASingleTestMethod

      public void cucumberDoesNotHaveASingleTestMethod()