@Target(value=TYPE) @Retention(value=RUNTIME) @WebAppConfiguration @TestExecutionListeners(value={VaadinTestExecutionListener.class,org.springframework.test.context.support.DependencyInjectionTestExecutionListener.class,org.springframework.test.context.support.DirtiesContextTestExecutionListener.class,org.springframework.test.context.transaction.TransactionalTestExecutionListener.class}) public @interface VaadinAppConfiguration
SpringJUnit4ClassRunner,view scoped, UI scoped or session scopedUI instances.
Example of usage:
@RunWith(SpringJUnit4ClassRunner.class)
@VaadinAppConfiguration
@ContextConfiguration(classes = ExampleIntegrationTest.Config.class)
public class MyTest {
@Autowired MyUIScopedController myController;
...
}
VaadinScopesCopyright © 2016. All rights reserved.