}
@Test
+ public void normalConstructorCanBeCalled() {
+ new SoneModificationDetector(core, sone, insertionDelay);
+ }
+
+ @Test
public void sonesStartOutAsNotEligible() {
assertThat(soneModificationDetector.isModified(), is(false));
assertThat(soneModificationDetector.isEligibleForInsert(), is(false));
}
@Test
+ public void originalFingerprintIsRetained() {
+ assertThat(soneModificationDetector.getOriginalFingerprint(), is("original"));
+ }
+
+ @Test
public void modifiedSoneIsEligibleAfter60Seconds() {
modifySone();
assertThat(soneModificationDetector.isModified(), is(true));