Remove bucket and access type from command interface
[Sone.git] / src / test / java / net / pterodactylus / sone / fcp / FcpInterfaceTest.kt
index ac08bb4..e9137b0 100644 (file)
@@ -41,12 +41,12 @@ class FcpInterfaceTest {
 
        private val core = mock<Core>()
        private val workingCommand = mock<AbstractSoneCommand>().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<AbstractSoneCommand>().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<String, AbstractSoneCommand> {