From 28e5462b08ad8d086b445c08113ab5b2d0151466 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 10 Jun 2011 19:06:51 +0200 Subject: Use LoginData type for login data git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@403 72836036-5685-4462-b002-a69064685172 --- test/jrummikub/control/LoginControlTest.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/jrummikub') diff --git a/test/jrummikub/control/LoginControlTest.java b/test/jrummikub/control/LoginControlTest.java index 946b143..152d069 100644 --- a/test/jrummikub/control/LoginControlTest.java +++ b/test/jrummikub/control/LoginControlTest.java @@ -1,9 +1,9 @@ package jrummikub.control; import static org.junit.Assert.*; -import jrummikub.control.LoginControl; import jrummikub.util.IListener; -import jrummikub.util.IListener3; +import jrummikub.util.IListener1; +import jrummikub.util.LoginData; import jrummikub.view.MockView; import org.junit.Before; @@ -35,17 +35,17 @@ public class LoginControlTest { @Test public void loginEventTest() { loginControl.getLoginEvent().add( - new IListener3() { + new IListener1() { @Override - public void handle(String value1, String value2, - String value3) { - assertEquals("a", value1); - assertEquals("b", value2); - assertEquals("c", value3); + public void handle(LoginData loginData) { + assertEquals("a", loginData.getUserName()); + assertEquals("b", loginData.getServerName()); + assertEquals("c", loginData.getPassword()); + assertEquals("d", loginData.getChannelName()); handled = true; } }); - view.loginPanel.loginEvent.emit("a", "b", "c"); + view.loginPanel.loginEvent.emit(new LoginData("a", "b", "c", "d")); assertTrue(handled); assertFalse(view.isLoginPanelVisible); assertFalse(view.isScorePanelVisible); -- cgit v1.2.3