Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor clean-up

  • Loading branch information...
commit 659ccd35822e09ffc79cfa6068eb67be5250fe57 1 parent 4e6b06e
@lrozenblyum authored
View
6 src/test/java/com/leokom/chess/gui/winboard/WinBoardPlayerTest.java
@@ -1,5 +1,6 @@
package com.leokom.chess.gui.winboard;
+import com.leokom.chess.framework.Player;
import com.leokom.chess.gui.Communicator;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
@@ -7,7 +8,6 @@
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
-import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.*;
@@ -70,10 +70,10 @@ public void quitCommandSwitchesShutdownNeed() {
public void useCommanderForQuitCommandRealTest() {
//dummy implementation - each time anybody sets a protover listener -
//we quit IMMEDIATELY
- WinboardCommander commander = mock( WinboardCommander.class );
+ final WinboardCommander commander = mock( WinboardCommander.class );
final ArgumentCaptor<QuitListener> quitListener = ArgumentCaptor.forClass( QuitListener.class );
- final WinboardPlayer winboardPlayer = new WinboardPlayer( commander );
+ final Player winboardPlayer = new WinboardPlayer( commander );
verify( commander ).setQuitListener( quitListener.capture() );
doAnswer( new Answer() {
Please sign in to comment.
Something went wrong with that request. Please try again.