summaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-01-14 13:49:57 +0100
committerJoffrey BION <joffrey.bion@gmail.com>2017-01-14 13:50:37 +0100
commit0ca28ca120e93441f38989cf0edf47b02d839335 (patch)
treecdf571ff1c9c9e20a36fea03a10c86020353e9cc /src/test/java/org
parentAdd test for WonderSidePickMethod (diff)
downloadseven-wonders-0ca28ca120e93441f38989cf0edf47b02d839335.tar.gz
seven-wonders-0ca28ca120e93441f38989cf0edf47b02d839335.tar.bz2
seven-wonders-0ca28ca120e93441f38989cf0edf47b02d839335.zip
Add test and fix HandRotationDirection
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/luxons/sevenwonders/game/cards/HandRotationDirectionTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/java/org/luxons/sevenwonders/game/cards/HandRotationDirectionTest.java b/src/test/java/org/luxons/sevenwonders/game/cards/HandRotationDirectionTest.java
new file mode 100644
index 00000000..6165d158
--- /dev/null
+++ b/src/test/java/org/luxons/sevenwonders/game/cards/HandRotationDirectionTest.java
@@ -0,0 +1,15 @@
+package org.luxons.sevenwonders.game.cards;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+
+public class HandRotationDirectionTest {
+
+ @Test
+ public void testAgesDirections() throws Exception {
+ assertEquals(HandRotationDirection.LEFT, HandRotationDirection.forAge(1));
+ assertEquals(HandRotationDirection.RIGHT, HandRotationDirection.forAge(2));
+ assertEquals(HandRotationDirection.LEFT, HandRotationDirection.forAge(3));
+ }
+} \ No newline at end of file
bgstack15