summaryrefslogtreecommitdiffstats
path: root/server/tests/src/com
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2015-04-23 15:57:05 +0300
committerTeppo Kurki <teppo.kurki@vaadin.com>2015-05-13 12:41:45 +0000
commitc9fe8c40d3900b7fdf72d239ad02e8e81f0fa091 (patch)
tree02c42e41b7700733cdb714e65b0cef44f581f40a /server/tests/src/com
parent0d1bbc946c5372994ef5587438023e42ddcfa54c (diff)
downloadvaadin-framework-c9fe8c40d3900b7fdf72d239ad02e8e81f0fa091.tar.gz
vaadin-framework-c9fe8c40d3900b7fdf72d239ad02e8e81f0fa091.zip
Don't leak current VaadinSession in test
Change-Id: I51d70636138ccf21ec4d7488aca2f071f940a51a
Diffstat (limited to 'server/tests/src/com')
-rw-r--r--server/tests/src/com/vaadin/tests/server/component/abstractsinglecomponentcontainer/RemoveFromParentLockingTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/component/abstractsinglecomponentcontainer/RemoveFromParentLockingTest.java b/server/tests/src/com/vaadin/tests/server/component/abstractsinglecomponentcontainer/RemoveFromParentLockingTest.java
index e277d4e075..2334542676 100644
--- a/server/tests/src/com/vaadin/tests/server/component/abstractsinglecomponentcontainer/RemoveFromParentLockingTest.java
+++ b/server/tests/src/com/vaadin/tests/server/component/abstractsinglecomponentcontainer/RemoveFromParentLockingTest.java
@@ -102,6 +102,8 @@ public class RemoveFromParentLockingTest {
"Cannot remove from parent when the session is not locked."
+ " Furthermore, there is another locked session, indicating that the component might be about to be moved from one session to another.",
e.getMessage());
+ } finally {
+ VaadinSession.setCurrent(null);
}
}
@@ -119,6 +121,8 @@ public class RemoveFromParentLockingTest {
notLockedComponent.addComponent(lockedComponent);
} catch (AssertionError e) {
// All is fine, don't care about the exact wording in this case
+ } finally {
+ VaadinSession.setCurrent(null);
}
}