com.vaadin.testbench.unit.
Class SpringUIUnitTest
All Implemented Interfaces:
Base JUnit 5 class for UI unit testing applications based on Spring
 Framework.
 This class provides functionality of the Spring TestContext Framework, in
 addition to set up a mock Vaadin Spring environment, so that views and
 components built upon dependency injection and AOP can be correctly be
 handled during unit testing.
 Usually when unit testing a UI view it is not needed to bootstrap the whole
 application. Subclasses can therefore be annotated
 with @ContextConfiguration or other
 Spring Testing annotations to load only required component or to provide mock
 services implementations.
 
 
 @ContextConfiguration(classes = ViewTestConfig.class)
 class ViewTest extends SpringUIUnitTest {
 }
 @Configuration
 class ViewTestConfig {
     @Bean
     MyService myService() {
         return new my MockMyService();
     }
 }
 
 
- 
Field Summary
Fields inherited from class com.vaadin.testbench.unit.BaseUIUnitTest
scanned, testers - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreate mocked Vaadin core obects, such as session, servlet populated with Routes, UI etc.
Gets the services implementations to be used to initialized Vaadin
Lookup.Methods inherited from class com.vaadin.testbench.unit.UIUnitTest
cleanVaadinEnvironment, testingEngineMethods inherited from class com.vaadin.testbench.unit.BaseUIUnitTest
$, $, $view, discoverRoutes, discoverRoutes, fireShortcut, getCurrentView, navigate, navigate, navigate, navigate, roundTrip, scanTesters, test, testMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.testbench.unit.TesterWrappers
test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test 
- 
Constructor Details
- 
SpringUIUnitTest
public SpringUIUnitTest() 
 - 
 - 
Method Details
- 
lookupServices
Description copied from class:
BaseUIUnitTestGets the services implementations to be used to initialized Vaadin
Lookup. Default implementation returns an empty Set. Override this method to provide custom Vaadin services, such asInstantiatorFactory,ResourceProvider, etc.Overrides:
lookupServicesin classBaseUIUnitTestReturns:
set of services implementation classes, never null.
 - 
initVaadinEnvironment
@BeforeEach protected void initVaadinEnvironment()Description copied from class:
BaseUIUnitTestCreate mocked Vaadin core obects, such as session, servlet populated with Routes, UI etc. for testing and find testers for the components.
Overrides:
initVaadinEnvironmentin classUIUnitTest 
 -