From 9f67363bc4c757ec266ea3833612280434d4f90f Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Sat, 14 Jan 2017 13:57:24 +0100 Subject: Add test for CardBack initialization (coverage frenzy) --- .../org/luxons/sevenwonders/game/cards/CardBackTest.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/test/java/org/luxons/sevenwonders/game/cards/CardBackTest.java (limited to 'src') 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 -- cgit