diff options
author | Leif Åstrand <leif@vaadin.com> | 2015-04-23 15:57:05 +0300 |
---|---|---|
committer | Teppo Kurki <teppo.kurki@vaadin.com> | 2015-05-13 12:41:45 +0000 |
commit | c9fe8c40d3900b7fdf72d239ad02e8e81f0fa091 (patch) | |
tree | 02c42e41b7700733cdb714e65b0cef44f581f40a /server/tests/src/com | |
parent | 0d1bbc946c5372994ef5587438023e42ddcfa54c (diff) | |
download | vaadin-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.java | 4 |
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); } } |