summaryrefslogtreecommitdiffstats
path: root/server/tests/src/com/vaadin/server/TestAbstractApplicationServletStaticFilesLocation.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/src/com/vaadin/server/TestAbstractApplicationServletStaticFilesLocation.java')
-rw-r--r--server/tests/src/com/vaadin/server/TestAbstractApplicationServletStaticFilesLocation.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/server/tests/src/com/vaadin/server/TestAbstractApplicationServletStaticFilesLocation.java b/server/tests/src/com/vaadin/server/TestAbstractApplicationServletStaticFilesLocation.java
index 2a83f5d5b2..3f940ae0a7 100644
--- a/server/tests/src/com/vaadin/server/TestAbstractApplicationServletStaticFilesLocation.java
+++ b/server/tests/src/com/vaadin/server/TestAbstractApplicationServletStaticFilesLocation.java
@@ -4,10 +4,8 @@ import static org.easymock.EasyMock.createMock;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
-import java.lang.reflect.Field;
import java.net.MalformedURLException;
import java.net.URL;
-import java.util.Properties;
import javax.servlet.http.HttpServletRequest;
@@ -24,16 +22,7 @@ public class TestAbstractApplicationServletStaticFilesLocation extends TestCase
super.setUp();
servlet = new VaadinServlet();
-
- // Workaround to avoid calling init and creating servlet config
- Field f = VaadinServlet.class.getDeclaredField("servletService");
- f.setAccessible(true);
- VaadinServletService service = new VaadinServletService(servlet,
- new DefaultDeploymentConfiguration(servlet.getClass(),
- new Properties()));
- service.init();
- f.set(servlet, service);
-
+ servlet.init(new MockServletConfig());
}
public void testWidgetSetLocation() throws Exception {