diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-10 19:06:51 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-10 19:06:51 +0200 |
commit | 28e5462b08ad8d086b445c08113ab5b2d0151466 (patch) | |
tree | df2add043654522c700ed52db4ca6d4860a953c3 /test/jrummikub | |
parent | e4ac4b55cd048f83b0c545026191c6df2ae990d0 (diff) | |
download | JRummikub-28e5462b08ad8d086b445c08113ab5b2d0151466.tar JRummikub-28e5462b08ad8d086b445c08113ab5b2d0151466.zip |
Use LoginData type for login data
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@403 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test/jrummikub')
-rw-r--r-- | test/jrummikub/control/LoginControlTest.java | 18 |
1 files changed, 9 insertions, 9 deletions
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<String, String, String>() { + new IListener1<LoginData>() { @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); |