use of com.vaadin.flow.router.legacy.DefaultErrorView in project flow by vaadin.
the class RouterTest method testNavigateToEmptyLocation_triggersDefaultErrorView.
@Test
public void testNavigateToEmptyLocation_triggersDefaultErrorView() {
UI ui = new RouterTestUI();
Router router = new Router();
router.reconfigure(c -> {
});
router.navigate(ui, new Location(""), NavigationTrigger.PROGRAMMATIC);
Assert.assertEquals(new DefaultErrorView().getText(), ui.getElement().getTextRecursively());
}
Aggregations