Slide 48
Slide 48 text
テスト設計技法 ~境界値分析~
public boolean judge (int x) {
if( x < 3 ){
return false;
} else if( x > 13 ){
return false;
}
return true;
}
@Test
public void test_1{
assertThat( judge(2), is(false));
}
@Test
public void test_2{
assertThat( judge(15), is(false));
}
@Test
public void test_3{
assertThat( judge(7), is(true));
}
カバレッジは100%だけど…