X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FFcpInterfaceTest.kt;h=e9137b06258adde6f5f9790f96249d62afbab605;hp=ac08bb47fc4d0e20c5aabceff708d3d38952a521;hb=914d5522692e7714ba5bdefb002fedc8e293f5fc;hpb=b32c81368c80e92de1d9bc2e8fdb635d251ecfa2 diff --git a/src/test/java/net/pterodactylus/sone/fcp/FcpInterfaceTest.kt b/src/test/java/net/pterodactylus/sone/fcp/FcpInterfaceTest.kt index ac08bb4..e9137b0 100644 --- a/src/test/java/net/pterodactylus/sone/fcp/FcpInterfaceTest.kt +++ b/src/test/java/net/pterodactylus/sone/fcp/FcpInterfaceTest.kt @@ -41,12 +41,12 @@ class FcpInterfaceTest { private val core = mock() private val workingCommand = mock().apply { - whenever(execute(any(), any(), any())).thenReturn(Response("Working", SimpleFieldSet(true).apply { + whenever(execute(any())).thenReturn(Response("Working", SimpleFieldSet(true).apply { putSingle("ReallyWorking", "true") })) } private val brokenCommand = mock().apply { - whenever(execute(any(), any(), any())).thenThrow(RuntimeException::class.java) + whenever(execute(any())).thenThrow(RuntimeException::class.java) } private val commandSupplier = object : CommandSupplier() { override fun supplyCommands(core: Core): Map {