summaryrefslogtreecommitdiffstats
path: root/test/jrummikub/model
diff options
context:
space:
mode:
Diffstat (limited to 'test/jrummikub/model')
-rw-r--r--test/jrummikub/model/MockHand.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/jrummikub/model/MockHand.java b/test/jrummikub/model/MockHand.java
index 0d0c523..2132ff4 100644
--- a/test/jrummikub/model/MockHand.java
+++ b/test/jrummikub/model/MockHand.java
@@ -9,7 +9,7 @@ import jrummikub.util.Pair;
public class MockHand implements IHand {
public List<Stone> stones = new ArrayList<Stone>();
-
+
public Iterable<Pair<Stone, Position>> iterable;
@Override
@@ -45,6 +45,10 @@ public class MockHand implements IHand {
}
public MockHand clone() {
- return null;
+ try {
+ return (MockHand) super.clone();
+ } catch (CloneNotSupportedException e) {
+ return null;
+ }
}
}