From 08045c5c1449356986c0a0cc51fcd46a262a3325 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 31 Jul 2014 14:33:18 +0200 Subject: [PATCH] Increse test coverage. --- .../pterodactylus/sone/core/SoneModificationDetectorTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/test/java/net/pterodactylus/sone/core/SoneModificationDetectorTest.java b/src/test/java/net/pterodactylus/sone/core/SoneModificationDetectorTest.java index 9d1cc59..cd0133f 100644 --- a/src/test/java/net/pterodactylus/sone/core/SoneModificationDetectorTest.java +++ b/src/test/java/net/pterodactylus/sone/core/SoneModificationDetectorTest.java @@ -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)); -- 2.7.4