diff options
Diffstat (limited to 'uitest/src/com/vaadin/tests/requesthandlers/AppResource404.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/requesthandlers/AppResource404.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/requesthandlers/AppResource404.java b/uitest/src/com/vaadin/tests/requesthandlers/AppResource404.java new file mode 100644 index 0000000000..ebccba74fb --- /dev/null +++ b/uitest/src/com/vaadin/tests/requesthandlers/AppResource404.java @@ -0,0 +1,31 @@ +package com.vaadin.tests.requesthandlers; + +import com.vaadin.server.ExternalResource; +import com.vaadin.tests.components.TestBase; +import com.vaadin.tests.integration.FlagSeResource; +import com.vaadin.ui.Link; + +public class AppResource404 extends TestBase { + + @Override + protected void setup() { + // Add one existing resource + final FlagSeResource resource = new FlagSeResource(); + resource.setCacheTime(0); + + addComponent(new Link("Existing resource", resource)); + addComponent(new Link("Non-existing resource", new ExternalResource( + getURL().toString() + "APP/12341234/"))); + } + + @Override + protected String getDescription() { + return "Accessing the URL of a resource that has been removed or the URL following the resource URL pattern but not currently mapped to a resource should give a 404 error message"; + } + + @Override + protected Integer getTicketNumber() { + return Integer.valueOf(6702); + } + +} |