diff options
author | Artur Signell <artur@vaadin.com> | 2012-08-30 17:24:36 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-08-30 17:24:36 +0300 |
commit | 7b25b3886ea95bc6495506fbe9472e45fcbde684 (patch) | |
tree | 0b93cb65dab437feb46720659a63b8f1ef48f7f4 /uitest/src/com/vaadin/tests/applicationservlet | |
parent | 8941056349e302e687e40e94c13709e75f256d73 (diff) | |
download | vaadin-framework-7b25b3886ea95bc6495506fbe9472e45fcbde684.tar.gz vaadin-framework-7b25b3886ea95bc6495506fbe9472e45fcbde684.zip |
Renamed tests -> uitest and tests/testbench -> uitest/src (#9299)
Diffstat (limited to 'uitest/src/com/vaadin/tests/applicationservlet')
-rw-r--r-- | uitest/src/com/vaadin/tests/applicationservlet/NoApplicationClass.html | 26 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/applicationservlet/NoMainWindow.java | 22 |
2 files changed, 48 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/applicationservlet/NoApplicationClass.html b/uitest/src/com/vaadin/tests/applicationservlet/NoApplicationClass.html new file mode 100644 index 0000000000..70bb8cc8f3 --- /dev/null +++ b/uitest/src/com/vaadin/tests/applicationservlet/NoApplicationClass.html @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head profile="http://selenium-ide.openqa.org/profiles/test-case"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link rel="selenium.base" href="http://localhost:8888/" /> +<title>New Test</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">New Test</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/run/ClassThatIsNotPresent?restartApplication</td> + <td></td> +</tr> +<tr> + <td>assertText</td> + <td>//pre[1]</td> + <td>java.lang.InstantiationException: Failed to load application class: ClassThatIsNotPresent</td> +</tr> +</tbody></table> +</body> +</html> diff --git a/uitest/src/com/vaadin/tests/applicationservlet/NoMainWindow.java b/uitest/src/com/vaadin/tests/applicationservlet/NoMainWindow.java new file mode 100644 index 0000000000..fc72b86a34 --- /dev/null +++ b/uitest/src/com/vaadin/tests/applicationservlet/NoMainWindow.java @@ -0,0 +1,22 @@ +package com.vaadin.tests.applicationservlet; + +import com.vaadin.tests.components.AbstractTestCase; + +public class NoMainWindow extends AbstractTestCase { + + @Override + protected String getDescription() { + return "This should produce an stack trace with \"No window found. Did you remember to setMainWindow()?\""; + } + + @Override + protected Integer getTicketNumber() { + return 3349; + } + + @Override + public void init() { + + } + +} |