Fix imports
[Sone.git] / src / test / java / net / pterodactylus / sone / fcp / UnlockSoneCommandTest.java
index ca615ee..e33e1bc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - LockSoneCommandTest.java - Copyright © 2013 David Roden
+ * Sone - UnlockSoneCommandTest.java - Copyright © 2013–2016 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@ package net.pterodactylus.sone.fcp;
 import static org.hamcrest.CoreMatchers.is;
 import static org.hamcrest.CoreMatchers.notNullValue;
 import static org.hamcrest.MatcherAssert.assertThat;
-import static org.mockito.Matchers.eq;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
@@ -54,7 +54,7 @@ public class UnlockSoneCommandTest {
                SimpleFieldSet fields = new SimpleFieldSetBuilder().put("Sone", "LocalSone").get();
 
                UnlockSoneCommand unlockSoneCommand = new UnlockSoneCommand(core);
-               Response response = unlockSoneCommand.execute(fields, null, null);
+               Response response = unlockSoneCommand.execute(fields);
 
                verify(core).unlockSone(eq(localSone));
                assertThat(response, notNullValue());
@@ -71,7 +71,7 @@ public class UnlockSoneCommandTest {
                SimpleFieldSet fields = new SimpleFieldSetBuilder().put("Sone", "RemoteSone").get();
 
                UnlockSoneCommand unlockSoneCommand = new UnlockSoneCommand(core);
-               unlockSoneCommand.execute(fields, null, null);
+               unlockSoneCommand.execute(fields);
        }
 
        @Test(expected = FcpException.class)
@@ -80,7 +80,7 @@ public class UnlockSoneCommandTest {
                SimpleFieldSet fields = new SimpleFieldSetBuilder().get();
 
                UnlockSoneCommand unlockSoneCommand = new UnlockSoneCommand(core);
-               unlockSoneCommand.execute(fields, null, null);
+               unlockSoneCommand.execute(fields);
        }
 
 }