Increse test coverage.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 31 Jul 2014 12:33:18 +0000 (14:33 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 31 Jul 2014 12:33:18 +0000 (14:33 +0200)
src/test/java/net/pterodactylus/sone/core/SoneModificationDetectorTest.java

index 9d1cc59..cd0133f 100644 (file)
@@ -52,12 +52,22 @@ public class SoneModificationDetectorTest {
        }
 
        @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));