aboutsummaryrefslogtreecommitdiffstats
path: root/server/tests/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/src')
-rw-r--r--server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java9
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));