Coding, Software Development, Java, Scala, Agile.
Rank.TEN)); assertEquals(Result.WIN, hand1.beats(hand2, game)); } Looking at that sample and the rest of the test class, two things jump out. First, the examples are very repetitive. The test source code looks like wallpaper. Second, only a small subset of possible Hand combinations is checked.