diff options
author | Artur Signell <artur@vaadin.com> | 2012-12-11 13:03:38 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-12-11 13:03:38 +0200 |
commit | 35b2118013348d27e0943979907c1eae8d3cf843 (patch) | |
tree | 2b3ae8e0878040b06898d80eaac289edcc2f169b /server/tests | |
parent | d52cf5f239f65b101babfe5efd303b30f52aa6ee (diff) | |
download | vaadin-framework-35b2118013348d27e0943979907c1eae8d3cf843.tar.gz vaadin-framework-35b2118013348d27e0943979907c1eae8d3cf843.zip |
Fixed test
Change-Id: I91e3492f3243d5d789a6608981646bc3217adb53
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java b/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java index f24638e6a7..250fa3f771 100644 --- a/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java +++ b/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java @@ -50,16 +50,17 @@ public class TestStreamVariableMapping extends TestCase { public void testAddStreamVariable() { String targetUrl = cm.getStreamVariableTargetUrl(owner, variableName, streamVariable); - assertTrue(targetUrl.startsWith("app://APP/UPLOAD/-1/1/myName/")); + assertTrue(targetUrl.startsWith("app://APP/UPLOAD/-1/" + + owner.getConnectorId() + "/myName/")); - ConnectorTracker tracker = UI.getCurrent().getConnectorTracker(); + ConnectorTracker tracker = owner.getUI().getConnectorTracker(); StreamVariable streamVariable2 = tracker.getStreamVariable( owner.getConnectorId(), variableName); assertSame(streamVariable, streamVariable2); } - public void testRemoverVariable() { - ConnectorTracker tracker = UI.getCurrent().getConnectorTracker(); + public void testRemoveVariable() { + ConnectorTracker tracker = owner.getUI().getConnectorTracker(); cm.getStreamVariableTargetUrl(owner, variableName, streamVariable); assertNotNull(tracker.getStreamVariable(owner.getConnectorId(), variableName)); |