@Test public void score_is_0_when_no_match() { initializeNoMatchCriterion(); profile.matches(criteria); assertThat(profile.score(), is(0)); }
@Test public void score_is_sum_when_some_match() { initializeSomeMatchCriteria(); int score = Weight.Important.getValue() * 2; profile.matches(criteria); assertThat(profile.score(), is(score)); }
@Test public void score_is_0_when_empty() { profile.matches(criteria); assertThat(profile.score(), is(0)); }