summaryrefslogtreecommitdiffstats
path: root/tests/server-side/com/vaadin
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-08-24 11:27:11 +0300
committerArtur Signell <artur@vaadin.com>2012-08-24 13:23:18 +0300
commitff0761f787f94a157d12af2a37e10e808d43fc59 (patch)
tree854cb79113c6c1f95e0529efd88e981638f1a463 /tests/server-side/com/vaadin
parent066491f708fd303c604b2bee7cbd46a8342f71bf (diff)
downloadvaadin-framework-ff0761f787f94a157d12af2a37e10e808d43fc59.tar.gz
vaadin-framework-ff0761f787f94a157d12af2a37e10e808d43fc59.zip
Renamed Application and UI methods and fields from "Root" to "UI" (#8908).
Diffstat (limited to 'tests/server-side/com/vaadin')
-rw-r--r--tests/server-side/com/vaadin/tests/server/component/root/CustomRootClassLoader.java12
1 files changed, 6 insertions, 6 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/CustomRootClassLoader.java
index 27d66ca0d0..59b1299db2 100644
--- a/tests/server-side/com/vaadin/tests/server/component/root/CustomRootClassLoader.java
+++ b/tests/server-side/com/vaadin/tests/server/component/root/CustomRootClassLoader.java
@@ -56,7 +56,7 @@ public class CustomRootClassLoader extends TestCase {
application.start(new ApplicationStartEvent(null,
createConfigurationMock(), null));
- UI uI = application.getRootForRequest(createRequestMock(null));
+ UI uI = application.getUIForRequest(createRequestMock(null));
assertTrue(uI instanceof MyRoot);
}
@@ -102,7 +102,7 @@ public class CustomRootClassLoader extends TestCase {
createConfigurationMock(), null));
UI uI = application
- .getRootForRequest(createRequestMock(loggingClassLoader));
+ .getUIForRequest(createRequestMock(loggingClassLoader));
assertTrue(uI instanceof MyRoot);
assertEquals(1, loggingClassLoader.requestedClasses.size());
assertEquals(MyRoot.class.getName(),
@@ -113,12 +113,12 @@ public class CustomRootClassLoader extends TestCase {
private Application createStubApplication() {
return new Application() {
{
- addRootProvider(new DefaultRootProvider());
+ addUIProvider(new DefaultRootProvider());
}
@Override
public String getProperty(String name) {
- if (name.equals(ROOT_PARAMETER)) {
+ if (name.equals(UI_PARAMETER)) {
return MyRoot.class.getName();
} else {
return super.getProperty(name);
@@ -126,11 +126,11 @@ public class CustomRootClassLoader extends TestCase {
}
@Override
- public UI getRootForRequest(WrappedRequest request)
+ public UI getUIForRequest(WrappedRequest request)
throws UIRequiresMoreInformationException {
// Always create a new root for testing (can't directly use
// getRoot as it's protected)
- return getRoot(request);
+ return getUI(request);
}
};
}