@Test public void testPokerPlayerSortHand() { PokerPlayer testPlayer = new PokerPlayer(); // Testing sortHand() testPlayer.setPlayer("Player1 FiveHearts ThreeHearts SixHearts TwoHearts FourHearts"); testPlayer.sortHand(); assertEquals( "Player1 TwoHearts ThreeHearts FourHearts FiveHearts SixHearts", testPlayer.toString()); }
@Test public void testPokerPlayertoString() { PokerPlayer testPlayer = new PokerPlayer(); testPlayer.setPlayer("Player1 TwoHearts ThreeHearts FourHearts FiveHearts SixHearts"); // Testing PokerPlayer toString() function assertEquals( "Player1 TwoHearts ThreeHearts FourHearts FiveHearts SixHearts", testPlayer.toString()); }