diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/jrummikub/control/network/LoginControlTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/jrummikub/control/network/LoginControlTest.java b/test/jrummikub/control/network/LoginControlTest.java index 21c3eed..b0220be 100644 --- a/test/jrummikub/control/network/LoginControlTest.java +++ b/test/jrummikub/control/network/LoginControlTest.java @@ -19,6 +19,7 @@ public class LoginControlTest { public void setup() { view = new MockView(); loginControl = new LoginControl(view); + loginControl.startLogin(); } /** */ @@ -53,13 +54,12 @@ public class LoginControlTest { /** */ @Test public void cancelEventTest() { - loginControl.getCancelEvent().add( - new IListener() { - @Override - public void handle() { - handled = true; - } - }); + loginControl.getCancelEvent().add(new IListener() { + @Override + public void handle() { + handled = true; + } + }); view.loginPanel.cancelEvent.emit(); assertTrue(handled); assertFalse(view.isLoginPanelVisible); |