summaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-01-14 13:57:24 +0100
committerJoffrey BION <joffrey.bion@gmail.com>2017-01-14 13:57:24 +0100
commit9f67363bc4c757ec266ea3833612280434d4f90f (patch)
tree84328d911e4a888a64f07ef7d3f8b5f2e7b554e4 /src/test/java/org
parentAdd test and fix HandRotationDirection (diff)
downloadseven-wonders-9f67363bc4c757ec266ea3833612280434d4f90f.tar.gz
seven-wonders-9f67363bc4c757ec266ea3833612280434d4f90f.tar.bz2
seven-wonders-9f67363bc4c757ec266ea3833612280434d4f90f.zip
Add test for CardBack initialization (coverage frenzy)
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/luxons/sevenwonders/game/cards/CardBackTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/java/org/luxons/sevenwonders/game/cards/CardBackTest.java b/src/test/java/org/luxons/sevenwonders/game/cards/CardBackTest.java
new file mode 100644
index 00000000..d105c33f
--- /dev/null
+++ b/src/test/java/org/luxons/sevenwonders/game/cards/CardBackTest.java
@@ -0,0 +1,15 @@
+package org.luxons.sevenwonders.game.cards;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+
+public class CardBackTest {
+
+ @Test
+ public void initializedWithImage() throws Exception {
+ String imagePath = "whateverimage.png";
+ CardBack back = new CardBack(imagePath);
+ assertEquals(imagePath, back.getImage());
+ }
+} \ No newline at end of file
bgstack15