summaryrefslogtreecommitdiffstats
path: root/server/tests
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-09-05 17:10:31 +0300
committerLeif Åstrand <leif@vaadin.com>2012-09-05 17:10:31 +0300
commit5ab35cc6080653a7e9b25712f637db6c95c183ce (patch)
treed6fd4f845e96b5dd9c0e697aa9ff7683ec5742c8 /server/tests
parent3ddaf280d61642742dff3f4a63376d0eedca5abf (diff)
downloadvaadin-framework-5ab35cc6080653a7e9b25712f637db6c95c183ce.tar.gz
vaadin-framework-5ab35cc6080653a7e9b25712f637db6c95c183ce.zip
Combine ApplicationContext into Application (#9402)
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/src/com/vaadin/tests/server/TestMimeTypes.java9
-rw-r--r--server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java7
2 files changed, 1 insertions, 15 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/TestMimeTypes.java b/server/tests/src/com/vaadin/tests/server/TestMimeTypes.java
index dc730f6cc4..12e5b09632 100644
--- a/server/tests/src/com/vaadin/tests/server/TestMimeTypes.java
+++ b/server/tests/src/com/vaadin/tests/server/TestMimeTypes.java
@@ -2,21 +2,12 @@ package com.vaadin.tests.server;
import junit.framework.TestCase;
-import com.vaadin.Application;
import com.vaadin.server.ClassResource;
import com.vaadin.ui.Embedded;
public class TestMimeTypes extends TestCase {
public void testEmbeddedPDF() {
- Application app = new Application() {
-
- @Override
- public void init() {
- // TODO Auto-generated method stub
-
- }
- };
Embedded e = new Embedded("A pdf", new ClassResource("file.pddf"));
assertEquals("Invalid mimetype", "application/octet-stream",
e.getMimeType());
diff --git a/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java b/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java
index f3b367483a..775348fb5c 100644
--- a/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java
+++ b/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java
@@ -66,12 +66,7 @@ public class TestStreamVariableMapping extends TestCase {
}
private CommunicationManager createCommunicationManager() {
- return new CommunicationManager(new Application() {
- @Override
- public void init() {
- // TODO Auto-generated method stub
- }
- });
+ return new CommunicationManager(new Application());
}
}