Class PokerTests


  • public class PokerTests
    extends java.lang.Object
    Some tests for the poker classes.
    Since:
    17.08.2016 06:26:23
    Author:
    Nico Danneberg
    • Constructor Detail

      • PokerTests

        public PokerTests()
    • Method Detail

      • testRightCards

        public void testRightCards()
        Tests if creation of cards does work with right given values.
        See Also:
        Card(String)
      • testWrongCards

        public void testWrongCards()
        Tests if creation of cards does not work with wrong given values.
        See Also:
        Card(String)
      • testEqualCards

        public void testEqualCards()
        Tests if two cards with the same value are really equal.
        See Also:
        Card.equals(Object)
      • testCompareCards

        public void testCompareCards()
        Tests if some cards are compared right with each other.
        See Also:
        Card.compareTo(Card)
      • testIsFourOfAKind

        public void testIsFourOfAKind()
        Tests if a hand is a Four of a Kind.
        See Also:
        Hand.isFourOfAKind()
      • testIsNotFourOfAKind

        public void testIsNotFourOfAKind()
        Tests if a hand is not a Four of a Kind.
        See Also:
        Hand.isFourOfAKind()
      • testIsFullHouse

        public void testIsFullHouse()
        Tests if a hand is a Full House.
        See Also:
        Hand.isFullHouse()
      • testIsNotFullHouse

        public void testIsNotFullHouse()
        Tests if a hand is not a Full House.
        See Also:
        Hand.isFullHouse()
      • testIsFlush

        public void testIsFlush()
        Tests if a hand is a Flush.
        See Also:
        Hand.isFlush()
      • testIsNotFlush

        public void testIsNotFlush()
        Tests if a hand is not a Flush.
        See Also:
        Hand.isFlush()
      • testIsRoyalFlush

        public void testIsRoyalFlush()
        Tests if a hand is a Royal Flush.
        See Also:
        Hand.isRoyalFlush()
      • testIsNotRoyalFlush

        public void testIsNotRoyalFlush()
        Tests if a hand is not a Royal Flush.
        See Also:
        Hand.isRoyalFlush()
      • testIsStraight

        public void testIsStraight()
        Tests if a hand is a Straight.
        See Also:
        Hand.isStraight()
      • testIsNotStraight

        public void testIsNotStraight()
        Tests if a hand is not a Straight.
        See Also:
        Hand.isStraight()
      • testIsThreeOfAKind

        public void testIsThreeOfAKind()
        Tests if a hand is a Three of a Kind.
        See Also:
        Hand.isThreeOfAKind()
      • testIsNotThreeOfAKind

        public void testIsNotThreeOfAKind()
        Tests if a hand is not a Three of a Kind.
        See Also:
        Hand.isThreeOfAKind()
      • testIsTwoPairs

        public void testIsTwoPairs()
        Tests if a hand is a Two Pairs.
        See Also:
        Hand.isTwoPairs()
      • testIsNotTwoPairs

        public void testIsNotTwoPairs()
        Tests if a hand is not a Two Pairs.
        See Also:
        Hand.isTwoPairs()