🔀 Merge next
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / core / SoneInserterTest.kt
index 8b061a7..2f90250 100644 (file)
@@ -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<HashMap<String, 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))