use of com.vaadin.flow.router.legacy.ViewRendererTest.AnotherParentView in project flow by vaadin.
the class LocationChangeEventTest method setup.
@Before
public void setup() {
UI ui = new RouterTestUI();
event = new LocationChangeEvent(ui.getRouterInterface().get(), ui, NavigationTrigger.PROGRAMMATIC, new Location(""), Arrays.asList(new AnotherTestView(), new AnotherParentView()), Collections.emptyMap());
event.getSource().reconfigure(c -> c.setParentView(TestView.class, ParentView.class));
navigationEvent = new NavigationEvent(event.getSource(), event.getLocation(), event.getUI(), event.getTrigger());
}
Also used :
NavigationEvent(com.vaadin.flow.router.NavigationEvent)
AnotherParentView(com.vaadin.flow.router.legacy.ViewRendererTest.AnotherParentView)
ParentView(com.vaadin.flow.router.legacy.ViewRendererTest.ParentView)
RouterTestUI(com.vaadin.flow.router.legacy.RouterTest.RouterTestUI)
RouterTestUI(com.vaadin.flow.router.legacy.RouterTest.RouterTestUI)
UI(com.vaadin.flow.component.UI)
AnotherParentView(com.vaadin.flow.router.legacy.ViewRendererTest.AnotherParentView)
LocationChangeEvent(com.vaadin.flow.router.legacy.LocationChangeEvent)
AnotherTestView(com.vaadin.flow.router.legacy.ViewRendererTest.AnotherTestView)
AnotherTestView(com.vaadin.flow.router.legacy.ViewRendererTest.AnotherTestView)
TestView(com.vaadin.flow.router.legacy.ViewRendererTest.TestView)
Location(com.vaadin.flow.router.Location)
Before(org.junit.Before)