diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-01-14 13:57:24 +0100 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-01-14 13:57:24 +0100 |
commit | 9f67363bc4c757ec266ea3833612280434d4f90f (patch) | |
tree | 84328d911e4a888a64f07ef7d3f8b5f2e7b554e4 | |
parent | Add test and fix HandRotationDirection (diff) | |
download | seven-wonders-9f67363bc4c757ec266ea3833612280434d4f90f.tar.gz seven-wonders-9f67363bc4c757ec266ea3833612280434d4f90f.tar.bz2 seven-wonders-9f67363bc4c757ec266ea3833612280434d4f90f.zip |
Add test for CardBack initialization (coverage frenzy)
-rw-r--r-- | src/test/java/org/luxons/sevenwonders/game/cards/CardBackTest.java | 15 |
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 |