My tests is showing 1 of 4 branches missing and I am not sure why.
public Classification classify() {
if (points >= 1 && points <= 4) {
return Classification.First;
}
Tests I ran:
@Test
void Test1() {
int p = 3;
Grade grade = new Grade(p);
assertEquals(grade.classify(), Classification.First);
}
@Test
void Test2() {
int p = 6;
Grade grade = new Grade(p);
assertNotEquals(grade.classify(), Classification.First);
}
The 1/4 branch coverage is showing on the if (points >= 1 && points <= 4) {
Not really sure which branch I am missing at this point. Any suggestions?