Skip to content
Browse files

Minor clean-up

  • Loading branch information...
1 parent 4e6b06e commit 659ccd35822e09ffc79cfa6068eb67be5250fe57 @lrozenblyum committed Dec 2, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/test/java/com/leokom/chess/gui/winboard/WinBoardPlayerTest.java
View
6 src/test/java/com/leokom/chess/gui/winboard/WinBoardPlayerTest.java
@@ -1,13 +1,13 @@
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;
import org.mockito.InOrder;
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() {

0 comments on commit 659ccd3

Please sign in to comment.
Something went wrong with that request. Please try again.