X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FFcpInterfaceTest.kt;h=e9137b06258adde6f5f9790f96249d62afbab605;hb=31de5826e7dd5d063a9c81152326d80ab87105eb;hp=ac08bb47fc4d0e20c5aabceff708d3d38952a521;hpb=906cc9fc1cde118f7c08a1f7a611abfb2285df9c;p=Sone.git 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 {