aboutsummaryrefslogtreecommitdiffstats
path: root/server/tests
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-09-24 15:44:08 +0300
committerLeif Åstrand <leif@vaadin.com>2012-09-24 16:01:46 +0300
commitded204acce46a009bac6d6562de43d5b6120e349 (patch)
tree74493e3e6e01f7f9cb600f626ee889e103003f03 /server/tests
parent0cd118248d77eeb197f2480ce59b35c6c3963e5c (diff)
downloadvaadin-framework-ded204acce46a009bac6d6562de43d5b6120e349.tar.gz
vaadin-framework-ded204acce46a009bac6d6562de43d5b6120e349.zip
Use event objects for future-proofing UIProvider API (#9721)
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/src/com/vaadin/tests/server/component/root/CustomUIClassLoader.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/component/root/CustomUIClassLoader.java b/server/tests/src/com/vaadin/tests/server/component/root/CustomUIClassLoader.java
index 858a18b223..e84d1c9939 100644
--- a/server/tests/src/com/vaadin/tests/server/component/root/CustomUIClassLoader.java
+++ b/server/tests/src/com/vaadin/tests/server/component/root/CustomUIClassLoader.java
@@ -11,6 +11,7 @@ import org.easymock.EasyMock;
import com.vaadin.DefaultDeploymentConfiguration;
import com.vaadin.server.DefaultUIProvider;
import com.vaadin.server.DeploymentConfiguration;
+import com.vaadin.server.UIClassSelectionEvent;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinService;
import com.vaadin.server.VaadinSession;
@@ -59,7 +60,7 @@ public class CustomUIClassLoader extends TestCase {
DefaultUIProvider uiProvider = new DefaultUIProvider();
Class<? extends UI> uiClass = uiProvider
- .getUIClass(createRequestMock(null));
+ .getUIClass(new UIClassSelectionEvent(createRequestMock(null)));
assertEquals(MyUI.class, uiClass);
}
@@ -103,7 +104,7 @@ public class CustomUIClassLoader extends TestCase {
DefaultUIProvider uiProvider = new DefaultUIProvider();
Class<? extends UI> uiClass = uiProvider
- .getUIClass(createRequestMock(loggingClassLoader));
+ .getUIClass(new UIClassSelectionEvent(createRequestMock(null)));
assertEquals(MyUI.class, uiClass);
assertEquals(1, loggingClassLoader.requestedClasses.size());