소스 검색

Don't leak current VaadinSession in test

Change-Id: Ib4ae44855a1a14ead5217e6f5d1c0d3330747a2f
tags/7.4.7
Leif Åstrand 9 년 전
부모
커밋
4474ca2726

+ 4
- 0
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);
}
}


Loading…
취소
저장