From 54c6ce1d5247b9399367d6fe814ca3266182a47e Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 17 Dec 2012 21:35:51 +0200 Subject: [PATCH] Register connector to avoid test failures Change-Id: Icf4a4410104848bb95d5ec7d036c9ec2aee1c08d --- .../src/com/vaadin/tests/server/TestStreamVariableMapping.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java b/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java index 250fa3f771..467a76dfa6 100644 --- a/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java +++ b/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java @@ -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)); -- 2.39.5