]> source.dussan.org Git - vaadin-framework.git/commitdiff
Register connector to avoid test failures 22/522/1
authorArtur Signell <artur@vaadin.com>
Mon, 17 Dec 2012 19:35:51 +0000 (21:35 +0200)
committerArtur Signell <artur@vaadin.com>
Mon, 17 Dec 2012 19:35:51 +0000 (21:35 +0200)
Change-Id: Icf4a4410104848bb95d5ec7d036c9ec2aee1c08d

server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java

index 250fa3f771cd1e54eab6c6621c3f103a68f18662..467a76dfa626c7cf094a15e8fe91a91420cbbd00 100644 (file)
@@ -48,6 +48,7 @@ public class TestStreamVariableMapping extends TestCase {
     }
 
     public void testAddStreamVariable() {
+        owner.getUI().getConnectorTracker().registerConnector(owner);
         String targetUrl = cm.getStreamVariableTargetUrl(owner, variableName,
                 streamVariable);
         assertTrue(targetUrl.startsWith("app://APP/UPLOAD/-1/"
@@ -61,6 +62,7 @@ public class TestStreamVariableMapping extends TestCase {
 
     public void testRemoveVariable() {
         ConnectorTracker tracker = owner.getUI().getConnectorTracker();
+        tracker.registerConnector(owner);
         cm.getStreamVariableTargetUrl(owner, variableName, streamVariable);
         assertNotNull(tracker.getStreamVariable(owner.getConnectorId(),
                 variableName));