public void testPokerPlayerCheckFourOAK() { PokerPlayer testPlayer = new PokerPlayer(); // testing checkFourOAK() testPlayer.setPlayer("Player1 TwoHearts TwoDiamonds TwoClubs TwoSpades SixHearts"); testPlayer.sortHand(); assertEquals(2, testPlayer.checkFourOAK()); // non-4OAK testPlayer.setPlayer("Player1 FiveHearts ThreeHearts NineHearts TwoHearts FourClubs"); testPlayer.sortHand(); assertEquals(-1, testPlayer.checkFourOAK()); }