コード例 #1
0
 @Test
 public void testRockDrawsWithRock() {
   Assert.assertEquals(
       "rock should draw with spock", setting.getOutcome(rock), GestureSetting.DRAWN);
 }
コード例 #2
0
 @Test
 public void testRockLosesToSpock() {
   Assert.assertEquals(
       "rock should lose to spock", setting.getOutcome(spock), GestureSetting.LOSER);
 }
コード例 #3
0
 @Test
 public void testRockBeatsLizard() {
   Assert.assertEquals(
       "rock should beat lizard", setting.getOutcome(lizard), GestureSetting.WINNER);
 }
コード例 #4
0
 @Test
 public void testRockLosesToPaper() {
   Assert.assertEquals(
       "rock should lose to paper", setting.getOutcome(paper), GestureSetting.LOSER);
 }
コード例 #5
0
 @Test
 public void testRockBeatsScissor() {
   Assert.assertEquals(
       "rock should beat scissor", setting.getOutcome(scissor), GestureSetting.WINNER);
 }