...

/

Last Tests

Last Tests

We will write a few last tests in the application iloveyouboss with the TDD cycle.

There is a special case where matches() returns true when the criterion is marked as dontCare:

Press + to interact
//...
@Test
public void matchesWhenCriterionIsDontCare() {
profile.add(answerDoesNotReimburseTuition);
Criterion criterion =
new Criterion(answerReimbursesTuition, Weight.DontCare);
assertTrue(profile.matches(criterion));
}

Making the test pass requires the addition of a ...

Access this course and 1400+ top-rated courses and projects.