Tests wieder heile dank MockConnectPanel
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@502 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
8a3e4c3e26
commit
e79295f271
2 changed files with 23 additions and 2 deletions
20
mock/jrummikub/view/MockConnectPanel.java
Normal file
20
mock/jrummikub/view/MockConnectPanel.java
Normal file
|
@ -0,0 +1,20 @@
|
|||
package jrummikub.view;
|
||||
|
||||
import jrummikub.util.IEvent;
|
||||
import jrummikub.util.MockEvent;
|
||||
|
||||
public class MockConnectPanel implements IConnectPanel{
|
||||
public MockEvent cancelEvent = new MockEvent();
|
||||
|
||||
@Override
|
||||
public void setMode(LoginError error) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEvent getCancelEvent() {
|
||||
return cancelEvent;
|
||||
}
|
||||
|
||||
}
|
|
@ -32,6 +32,8 @@ public class MockView implements IView {
|
|||
/** */
|
||||
public MockQuitWarningPanel quitWarningPanel = new MockQuitWarningPanel();
|
||||
/** */
|
||||
public MockConnectPanel connectPanel = new MockConnectPanel();
|
||||
/** */
|
||||
public boolean isSettingsPanelVisible = false;
|
||||
/** */
|
||||
public boolean isScorePanelVisible = false;
|
||||
|
@ -226,8 +228,7 @@ public class MockView implements IView {
|
|||
|
||||
@Override
|
||||
public IConnectPanel getConnectPanel() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
return connectPanel;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Reference in a new issue