summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2013-03-01 16:10:50 +0200
committerVaadin Code Review <review@vaadin.com>2013-03-04 10:36:17 +0000
commitda5a55ccdf3c5a1732ae246c43370051633c9265 (patch)
tree216fb6df1dad284a7707f6ba40110c8991f42b01 /server
parentd6cf871c7d3cd7e48db3450b02361e24fe652670 (diff)
downloadvaadin-framework-da5a55ccdf3c5a1732ae246c43370051633c9265.tar.gz
vaadin-framework-da5a55ccdf3c5a1732ae246c43370051633c9265.zip
Update test to use default classloader instead of null
Support for setting null as the classloader was removed at the time when Application was removed. Change-Id: Ib3d75dae1d1d81d8760b93616d05ba0746323e3c
Diffstat (limited to 'server')
-rw-r--r--server/tests/src/com/vaadin/tests/server/component/ui/CustomUIClassLoader.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/component/ui/CustomUIClassLoader.java b/server/tests/src/com/vaadin/tests/server/component/ui/CustomUIClassLoader.java
index e02fafeaff..8884c0c27c 100644
--- a/server/tests/src/com/vaadin/tests/server/component/ui/CustomUIClassLoader.java
+++ b/server/tests/src/com/vaadin/tests/server/component/ui/CustomUIClassLoader.java
@@ -52,13 +52,14 @@ public class CustomUIClassLoader extends TestCase {
* @throws Exception
* if thrown
*/
- public void testWithNullClassLoader() throws Exception {
+ public void testWithDefaultClassLoader() throws Exception {
VaadinSession application = createStubApplication();
application.setConfiguration(createConfigurationMock());
DefaultUIProvider uiProvider = new DefaultUIProvider();
Class<? extends UI> uiClass = uiProvider
- .getUIClass(new UIClassSelectionEvent(createRequestMock(null)));
+ .getUIClass(new UIClassSelectionEvent(
+ createRequestMock(getClass().getClassLoader())));
assertEquals(MyUI.class, uiClass);
}