]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed test 85/485/1
authorArtur Signell <artur@vaadin.com>
Tue, 11 Dec 2012 11:03:38 +0000 (13:03 +0200)
committerArtur Signell <artur@vaadin.com>
Tue, 11 Dec 2012 11:03:38 +0000 (13:03 +0200)
Change-Id: I91e3492f3243d5d789a6608981646bc3217adb53

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

index f24638e6a7f4ca771d11f25b43910e9f2e001739..250fa3f771cd1e54eab6c6621c3f103a68f18662 100644 (file)
@@ -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));