Finished control tests
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@603 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
a3fc740af5
commit
ce6cc738ad
2 changed files with 5 additions and 2 deletions
|
@ -88,6 +88,8 @@ public class MockView implements IView {
|
||||||
public MockEvent acknowledgeConnectionLostEvent = new MockEvent();
|
public MockEvent acknowledgeConnectionLostEvent = new MockEvent();
|
||||||
/** */
|
/** */
|
||||||
public MockEvent1<File> loadFileEvent = new MockEvent1<File>();
|
public MockEvent1<File> loadFileEvent = new MockEvent1<File>();
|
||||||
|
/** */
|
||||||
|
public boolean loadCalled = false;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MockTablePanel getTablePanel() {
|
public MockTablePanel getTablePanel() {
|
||||||
|
@ -314,7 +316,7 @@ public class MockView implements IView {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void load() {
|
public void load() {
|
||||||
// TODO Auto-generated method stub
|
loadCalled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -113,7 +113,8 @@ public class ApplicationControlTest {
|
||||||
assertTrue(view.isQuitWarningPanelVisible);
|
assertTrue(view.isQuitWarningPanelVisible);
|
||||||
assertSame(QuitMode.QUIT_GAME, view.getQuitWarningPanel().getQuitMode());
|
assertSame(QuitMode.QUIT_GAME, view.getQuitWarningPanel().getQuitMode());
|
||||||
view.getQuitWarningPanel().quitEvent.emit();
|
view.getQuitWarningPanel().quitEvent.emit();
|
||||||
// TODO asserte was
|
assertFalse(view.isQuitWarningPanelVisible);
|
||||||
|
assertTrue(view.loadCalled);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
|
|
Reference in a new issue