예제 #1
0
  @Before
  public void setUp() {
    hr1 = new HitRule();
    hr2 = new HitRule();
    hr3 = new HitRule();

    hr1.getKingVictory();
    hr2.getKingVictory();
    hr3.getKingVictory();

    hr1.setKingVictory(false);
    hr2.setKingVictory(false);
    hr3.setKingVictory(true);
  }
예제 #2
0
 @Test
 public void testGetKingVictory() {
   assertTrue(hr3.getKingVictory());
   assertFalse(hr2.getKingVictory());
 }