X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FSoneInserterTest.kt;fp=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FSoneInserterTest.kt;h=2f902509596fc153b818fac27581b28e538107eb;hp=8b061a7678d6765c510410270b8c74e8fdb4c5fd;hb=d50730f6a330439e0e7ef97ca9329dffe72d5640;hpb=97fe04482ebb8a08e43294acde041c2975cbd8ee diff --git a/src/test/kotlin/net/pterodactylus/sone/core/SoneInserterTest.kt b/src/test/kotlin/net/pterodactylus/sone/core/SoneInserterTest.kt index 8b061a7..2f90250 100644 --- a/src/test/kotlin/net/pterodactylus/sone/core/SoneInserterTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/core/SoneInserterTest.kt @@ -104,7 +104,7 @@ class SoneInserterTest { doAnswer { soneInserter.stop() null - }.`when`(core).touchConfiguration() + }.whenever(core).touchConfiguration() soneInserter.serviceRun() val soneEvents = ArgumentCaptor.forClass(SoneEvent::class.java) verify(freenetInterface).insertDirectory(eq(insertUri), any>(), eq("index.html")) @@ -251,7 +251,7 @@ class SoneInserterTest { doAnswer { soneInserter.stop() null - }.`when`(core).touchConfiguration() + }.whenever(core).touchConfiguration() soneInserter.serviceRun() val histogram = metricRegistry.histogram("sone.insert.duration") assertThat(histogram.count, equalTo(1L))