Fix variable name.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 2 Dec 2014 21:29:52 +0000 (22:29 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 2 Dec 2014 21:36:29 +0000 (22:36 +0100)
src/test/java/net/pterodactylus/sone/fcp/LockSoneCommandTest.java

index 383b52a..5932c31 100644 (file)
@@ -66,9 +66,9 @@ public class LockSoneCommandTest {
 
        @Test(expected = FcpException.class)
        public void testLockingARemoteSone() throws FcpException {
-               Sone removeSone = mock(Sone.class);
+               Sone remoteSone = mock(Sone.class);
                Core core = mock(Core.class);
-               when(core.getSone(eq("RemoteSone"))).thenReturn(Optional.of(removeSone));
+               when(core.getSone(eq("RemoteSone"))).thenReturn(Optional.of(remoteSone));
                SimpleFieldSet fields = new SimpleFieldSetBuilder().put("Sone", "RemoteSone").get();
 
                LockSoneCommand lockSoneCommand = new LockSoneCommand(core);