Mock ist wieder heile und es gibt Tests für die LoginControl... und eine LoginControl
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@397 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
9c281a73c0
commit
8e24819d86
5 changed files with 193 additions and 4 deletions
26
src/jrummikub/control/network/LoginControl.java
Normal file
26
src/jrummikub/control/network/LoginControl.java
Normal file
|
@ -0,0 +1,26 @@
|
|||
package jrummikub.control.network;
|
||||
|
||||
import jrummikub.util.Event;
|
||||
import jrummikub.util.Event3;
|
||||
import jrummikub.util.IEvent;
|
||||
import jrummikub.util.IEvent3;
|
||||
import jrummikub.view.IView;
|
||||
|
||||
public class LoginControl {
|
||||
private IView view;
|
||||
private Event3<String, String, String> loginEvent = new Event3<String, String, String>();
|
||||
private Event cancelEvent = new Event();
|
||||
|
||||
public LoginControl(IView view) {
|
||||
this.view = view;
|
||||
}
|
||||
|
||||
public IEvent3<String, String, String> getLoginEvent() {
|
||||
return loginEvent;
|
||||
}
|
||||
|
||||
public IEvent getCancelEvent() {
|
||||
return cancelEvent;
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue