Package com.vaadin.testbench.unit
Class UITestSpringLookupInitializer
-
- All Implemented Interfaces:
-
com.vaadin.flow.di.AbstractLookupInitializer,org.springframework.test.context.TestExecutionListener
public class UITestSpringLookupInitializer extends SpringLookupInitializer implements TestExecutionListenerA SpringLookupInitializer that adapts Spring ApplicationContext to WebApplicationContext and registers it into ServletContext so that lookup can be initialized correctly. For internal use only.
-
-
Constructor Summary
Constructors Constructor Description UITestSpringLookupInitializer()
-
Method Summary
Modifier and Type Method Description voidbeforeTestMethod(TestContext testContext)voidafterTestMethod(TestContext testContext)voidinitialize(VaadinContext context, Map<Class<out Object>, Collection<Class<out Object>>> services, VaadinApplicationInitializationBootstrap bootstrap)-
Methods inherited from class org.springframework.test.context.TestExecutionListener
afterTestClass, afterTestExecution, beforeTestClass, beforeTestExecution, prepareTestInstance -
Methods inherited from class com.vaadin.flow.di.LookupInitializer
getDefaultImplementations -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
beforeTestMethod
void beforeTestMethod(TestContext testContext)
-
afterTestMethod
void afterTestMethod(TestContext testContext)
-
initialize
void initialize(VaadinContext context, Map<Class<out Object>, Collection<Class<out Object>>> services, VaadinApplicationInitializationBootstrap bootstrap)
-
-
-
-