summaryrefslogtreecommitdiffstats
path: root/test/jrummikub
diff options
context:
space:
mode:
Diffstat (limited to 'test/jrummikub')
-rw-r--r--test/jrummikub/view/MockPlayerPanel.java37
-rw-r--r--test/jrummikub/view/MockView.java65
2 files changed, 102 insertions, 0 deletions
diff --git a/test/jrummikub/view/MockPlayerPanel.java b/test/jrummikub/view/MockPlayerPanel.java
new file mode 100644
index 0000000..b144bbb
--- /dev/null
+++ b/test/jrummikub/view/MockPlayerPanel.java
@@ -0,0 +1,37 @@
+package jrummikub.view;
+
+import jrummikub.util.Event;
+import jrummikub.util.IEvent;
+
+public class MockPlayerPanel implements IPlayerPanel {
+ public Event endTurnEvent = new Event();
+ @Override
+ public IHandPanel getHandPanel() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void setTimeLeft(int time) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public IEvent getSortByGroupsEvent() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IEvent getSortByRunsEvent() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IEvent getEndTurnEvent() {
+ return endTurnEvent;
+ }
+
+}
diff --git a/test/jrummikub/view/MockView.java b/test/jrummikub/view/MockView.java
new file mode 100644
index 0000000..9b526a6
--- /dev/null
+++ b/test/jrummikub/view/MockView.java
@@ -0,0 +1,65 @@
+package jrummikub.view;
+import java.util.Collection;
+
+import jrummikub.model.Stone;
+import jrummikub.util.IEvent;
+
+public class MockView implements IView {
+ public MockPlayerPanel playerPanel = new MockPlayerPanel();
+
+ @Override
+ public ITablePanel getTablePanel() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPlayerPanel getPlayerPanel() {
+ return playerPanel;
+ }
+
+ @Override
+ public void setCurrentPlayerName(String playerName) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setSelectedStones(Collection<Stone> stones) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void enableStartTurnPanel(boolean enable) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public IEvent getStartTurnEvent() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void enableWinPanel(boolean enable) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public IEvent getQuitEvent() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IEvent getNewGameEvent() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+
+
+} \ No newline at end of file