From da5a55ccdf3c5a1732ae246c43370051633c9265 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Fri, 1 Mar 2013 16:10:50 +0200 Subject: 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 --- .../com/vaadin/tests/server/component/ui/CustomUIClassLoader.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server') 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 uiClass = uiProvider - .getUIClass(new UIClassSelectionEvent(createRequestMock(null))); + .getUIClass(new UIClassSelectionEvent( + createRequestMock(getClass().getClassLoader()))); assertEquals(MyUI.class, uiClass); } -- cgit v1.2.3