aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/navigator/NavigatorTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/navigator/NavigatorTest.java')
-rw-r--r--uitest/src/com/vaadin/tests/navigator/NavigatorTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/navigator/NavigatorTest.java b/uitest/src/com/vaadin/tests/navigator/NavigatorTest.java
index 4986bd21e6..a3f7ce9f5b 100644
--- a/uitest/src/com/vaadin/tests/navigator/NavigatorTest.java
+++ b/uitest/src/com/vaadin/tests/navigator/NavigatorTest.java
@@ -74,6 +74,15 @@ public class NavigatorTest extends UI {
}
}
+ class ErrorView extends Label implements View {
+ @Override
+ public void enter(ViewChangeEvent event) {
+ log.log("View '" + event.getViewName() + "' not found!");
+ setValue("Tried to navigate to " + event.getViewName()
+ + " but such a view could not be found :(");
+ }
+ }
+
class NaviListener implements ViewChangeListener {
@Override
@@ -114,6 +123,8 @@ public class NavigatorTest extends UI {
navi.addViewChangeListener(new NaviListener());
+ navi.setErrorView(new ErrorView());
+
navi.navigate();
addComponent(new NaviButton("list"));