Package org.vaadin.spring.test
Class VaadinScopes
java.lang.Object
org.vaadin.spring.test.VaadinScopes
Helper class to set up the Vaadin scopes for testing.
- Author:
- Petter Holmström (petter@vaadin.com)
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetUp()static voidtearDown()Tears downVaadinSessionScope,UIScopeImplandViewScopeImpl, causing all scoped beans to be destroyed.
-
Method Details
-
setUp
public static void setUp()Sets upVaadinSessionScope,UIScopeImplandViewScopeImplto work as expected during the test. Please note, that bothUI.getCurrent()andVaadinSession.getCurrent()will return null. -
tearDown
public static void tearDown()Tears downVaadinSessionScope,UIScopeImplandViewScopeImpl, causing all scoped beans to be destroyed.
-