summaryrefslogtreecommitdiffstats
path: root/tests/server-side/com
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-08-24 14:19:09 +0300
committerArtur Signell <artur@vaadin.com>2012-08-24 14:19:09 +0300
commitc90d01c4118239e541ec109e471c9c8af8ed18d0 (patch)
tree5c65f4557c1810a457111e864fb4c5c33a6b8098 /tests/server-side/com
parent5c557b50bc5f7f754d60a2ed435907b897b6750b (diff)
downloadvaadin-framework-c90d01c4118239e541ec109e471c9c8af8ed18d0.tar.gz
vaadin-framework-c90d01c4118239e541ec109e471c9c8af8ed18d0.zip
Root -> UI in tests (#8908)
Diffstat (limited to 'tests/server-side/com')
-rw-r--r--tests/server-side/com/vaadin/tests/server/component/root/CustomUIClassLoader.java (renamed from tests/server-side/com/vaadin/tests/server/component/root/CustomRootClassLoader.java)12
-rw-r--r--tests/server-side/com/vaadin/tests/server/component/window/AttachDetachWindow.java6
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/server-side/com/vaadin/tests/server/component/root/CustomRootClassLoader.java b/tests/server-side/com/vaadin/tests/server/component/root/CustomUIClassLoader.java
index aa4fa22d06..9b4d9492a2 100644
--- a/tests/server-side/com/vaadin/tests/server/component/root/CustomRootClassLoader.java
+++ b/tests/server-side/com/vaadin/tests/server/component/root/CustomUIClassLoader.java
@@ -16,12 +16,12 @@ import com.vaadin.terminal.DeploymentConfiguration;
import com.vaadin.terminal.WrappedRequest;
import com.vaadin.ui.UI;
-public class CustomRootClassLoader extends TestCase {
+public class CustomUIClassLoader extends TestCase {
/**
* Stub root
*/
- public static class MyRoot extends UI {
+ public static class MyUI extends UI {
@Override
protected void init(WrappedRequest request) {
// Nothing to see here
@@ -57,7 +57,7 @@ public class CustomRootClassLoader extends TestCase {
createConfigurationMock(), null));
UI uI = application.getUIForRequest(createRequestMock(null));
- assertTrue(uI instanceof MyRoot);
+ assertTrue(uI instanceof MyUI);
}
private static DeploymentConfiguration createConfigurationMock() {
@@ -103,9 +103,9 @@ public class CustomRootClassLoader extends TestCase {
UI uI = application
.getUIForRequest(createRequestMock(loggingClassLoader));
- assertTrue(uI instanceof MyRoot);
+ assertTrue(uI instanceof MyUI);
assertEquals(1, loggingClassLoader.requestedClasses.size());
- assertEquals(MyRoot.class.getName(),
+ assertEquals(MyUI.class.getName(),
loggingClassLoader.requestedClasses.get(0));
}
@@ -119,7 +119,7 @@ public class CustomRootClassLoader extends TestCase {
@Override
public String getProperty(String name) {
if (name.equals(UI_PARAMETER)) {
- return MyRoot.class.getName();
+ return MyUI.class.getName();
} else {
return super.getProperty(name);
}
diff --git a/tests/server-side/com/vaadin/tests/server/component/window/AttachDetachWindow.java b/tests/server-side/com/vaadin/tests/server/component/window/AttachDetachWindow.java
index e2db224f08..2a0a733140 100644
--- a/tests/server-side/com/vaadin/tests/server/component/window/AttachDetachWindow.java
+++ b/tests/server-side/com/vaadin/tests/server/component/window/AttachDetachWindow.java
@@ -100,12 +100,12 @@ public class AttachDetachWindow {
}
}
- private class TestRoot extends UI implements TestContainer {
+ private class TestUI extends UI implements TestContainer {
boolean rootAttachCalled = false;
boolean rootDetachCalled = false;
private TestContent testContent = new TestContent();;
- public TestRoot() {
+ public TestUI() {
setContent(testContent);
}
@@ -142,7 +142,7 @@ public class AttachDetachWindow {
}
}
- TestRoot main = new TestRoot();
+ TestUI main = new TestUI();
TestWindow sub = new TestWindow();
@Test