Exemplo n.º 1
0
 @Theory
 public void canEntryは25歳以下の女性でない場合にfalseを返す(int age, Gender gender) throws Exception {
   assumeTrue(25 < age || gender != Gender.FEMALE);
   String msg = "When age=" + age + ", gender=" + gender;
   assertThat(msg, Member.canEntry(age, gender), is(false));
 }
Exemplo n.º 2
0
 @Theory
 public void canEntryは25歳以下の女性の場合にtrueを返す(int age, Gender gender) throws Exception {
   assumeTrue(age <= 25 && gender == Gender.FEMALE);
   String msg = "When age=" + age + ", gender=" + gender;
   assertThat(msg, Member.canEntry(age, gender), is(true));
 }