From 0592fbab863bf765718bc263a7bc0ddd151e4fe2 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Sat, 14 Jan 2017 19:20:59 +0000 Subject: [PATCH] Moved HandTest to match application package structure. --- .../{uk/co/neviyn/pokergame/model => game}/HandTest.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) rename src/test/java/{uk/co/neviyn/pokergame/model => game}/HandTest.java (96%) diff --git a/src/test/java/uk/co/neviyn/pokergame/model/HandTest.java b/src/test/java/game/HandTest.java similarity index 96% rename from src/test/java/uk/co/neviyn/pokergame/model/HandTest.java rename to src/test/java/game/HandTest.java index 798777c..695f4da 100644 --- a/src/test/java/uk/co/neviyn/pokergame/model/HandTest.java +++ b/src/test/java/game/HandTest.java @@ -1,10 +1,15 @@ -package uk.co.neviyn.pokergame.model; +package game; +import org.junit.Assert; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import uk.co.neviyn.pokergame.game.Hand; import uk.co.neviyn.pokergame.game.IDeck; +import uk.co.neviyn.pokergame.model.Card; +import uk.co.neviyn.pokergame.model.Result; +import uk.co.neviyn.pokergame.model.Suit; +import uk.co.neviyn.pokergame.model.Value; import java.util.Stack; @@ -27,7 +32,7 @@ public class HandTest { deck.addCard(new Card(Suit.CLUBS, Value.KING)); deck.addCard(new Card(Suit.CLUBS, Value.ACE)); Hand hand = new Hand(deck); - assertEquals(Result.ROYAL_STRAIGHT_FLUSH, hand.checkForWin()); + Assert.assertEquals(Result.ROYAL_STRAIGHT_FLUSH, hand.checkForWin()); } @Test