ソースを参照

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 ファイルの表示

"Cannot remove from parent when the session is not locked." "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.", + " Furthermore, there is another locked session, indicating that the component might be about to be moved from one session to another.",
e.getMessage()); e.getMessage());
} finally {
VaadinSession.setCurrent(null);
} }
} }


notLockedComponent.addComponent(lockedComponent); notLockedComponent.addComponent(lockedComponent);
} catch (AssertionError e) { } catch (AssertionError e) {
// All is fine, don't care about the exact wording in this case // All is fine, don't care about the exact wording in this case
} finally {
VaadinSession.setCurrent(null);
} }
} }



読み込み中…
キャンセル
保存