summaryrefslogtreecommitdiffstats
path: root/test/jrummikub/control
diff options
context:
space:
mode:
Diffstat (limited to 'test/jrummikub/control')
-rw-r--r--test/jrummikub/control/network/LoginControlTest.java14
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);