diff options
author | Artur Signell <artur@vaadin.com> | 2012-08-24 11:27:11 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-08-24 13:23:18 +0300 |
commit | ff0761f787f94a157d12af2a37e10e808d43fc59 (patch) | |
tree | 854cb79113c6c1f95e0529efd88e981638f1a463 /tests/server-side/com/vaadin | |
parent | 066491f708fd303c604b2bee7cbd46a8342f71bf (diff) | |
download | vaadin-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.java | 12 |
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); } }; } |