Package io.cucumber.spring
Class TestContextAdaptor
java.lang.Object
io.cucumber.spring.TestContextAdaptor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTestContextAdaptor(org.springframework.test.context.TestContextManager delegate) -
Method Summary
Modifier and TypeMethodDescription(package private) static TestContextAdaptorcreate(Supplier<org.springframework.test.context.TestContextManager> testContextManagerSupplier, Collection<Class<?>> glueClasses) private voidvoidprivate voidprivate Method(package private) final <T> TgetInstance(Class<T> type) private Objectprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate static voidregisterGlueCodeScope(org.springframework.context.ConfigurableApplicationContext context) private static voidregisterStepClassBeanDefinition(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Class<?> glueClass) private static voidregisterStepClassBeanDefinitions(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Collection<Class<?>> glueClasses) (package private) final voidstart()private void(package private) final voidstop()private void
-
Field Details
-
monitor
-
delegate
private final org.springframework.test.context.TestContextManager delegate -
applicationContext
private final org.springframework.context.ConfigurableApplicationContext applicationContext -
stopInvocations
-
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
-
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
-
getDummyMethod
-
cucumberDoesNotHaveASingleTestMethod
public void cucumberDoesNotHaveASingleTestMethod()
-