}
@Test
- public void modifiedSoneIsEligibleAfter60Seconds() {
+ public void sonesStartOutAsNotEligible() {
assertThat(soneModificationDetector.isModified(), is(false));
assertThat(soneModificationDetector.isEligibleForInsert(), is(false));
+ }
+
+ @Test
+ public void modifiedSoneIsEligibleAfter60Seconds() {
modifySone();
assertThat(soneModificationDetector.isModified(), is(true));
assertThat(soneModificationDetector.isEligibleForInsert(), is(false));
@Test
public void settingFingerprintWillResetTheEligibility() {
- assertThat(soneModificationDetector.isEligibleForInsert(), is(false));
modifySone();
assertThat(soneModificationDetector.isEligibleForInsert(), is(false));
passTime(100);
@Test
public void changingInsertionDelayWillInfluenceEligibility() {
- assertThat(soneModificationDetector.isEligibleForInsert(), is(false));
modifySone();
assertThat(soneModificationDetector.isEligibleForInsert(), is(false));
passTime(100);