@Test public void shouldResetGame(){ ContentResolver contentResolver = Mockito.mock(ContentResolver.class); toeGame.reset(contentResolver); verify(contentResolver).delete(GameContentProvider.CONTENT_URI, null, null); }
public void reset(ContentResolver contentResolver) { setGameOver(); contentResolver.delete(GameContentProvider.CONTENT_URI, null, null); }
ToeGame { public void reset(ContentResolver contentResolver) { setGameOver(); contentResolver.delete(GameContentProvider.CONTENT_URI, null, null); } }
ToeGame { public void reset(ContentResolver contentResolver) { setGameOver(); contentResolver.delete(GameContentProvider.CONTENT_URI, null, null); } @Inject  ToeGame(PreferenceHelper preferenceHelper); }
ToeGame { public void reset(ContentResolver contentResolver) { setGameOver(); contentResolver.delete(GameContentProvider.CONTENT_URI, null, null); } @Inject  ToeGame(PreferenceHelper preferenceHelper); String titleHack(String appName, String statusMessage); void setSkill(Skill skill); void setNumOfPlayers(int numOfPlayers); Skill getSkill(); int getNumOfPlayers(); void setTurn(GameSymbol gameSymbol); GameSymbol getTurn(); boolean inProgress(); void setGameOver(); void setGameInProgess(); void advanceTurn(GameSymbol gameSymbol); void chooseBox(ContentResolver contentResolver, ToeStrategy strategy); void reset(ContentResolver contentResolver); boolean isOnePlayerGame(); boolean symbolIsAndroid(GameSymbol symbol); boolean isAndroidTurn(); void generateAndroidTurn(ContentResolver contentResolver, int[] selectedXBoxIds, int[] selectedOBoxIds); }
ToeGame { public void reset(ContentResolver contentResolver) { setGameOver(); contentResolver.delete(GameContentProvider.CONTENT_URI, null, null); } @Inject  ToeGame(PreferenceHelper preferenceHelper); String titleHack(String appName, String statusMessage); void setSkill(Skill skill); void setNumOfPlayers(int numOfPlayers); Skill getSkill(); int getNumOfPlayers(); void setTurn(GameSymbol gameSymbol); GameSymbol getTurn(); boolean inProgress(); void setGameOver(); void setGameInProgess(); void advanceTurn(GameSymbol gameSymbol); void chooseBox(ContentResolver contentResolver, ToeStrategy strategy); void reset(ContentResolver contentResolver); boolean isOnePlayerGame(); boolean symbolIsAndroid(GameSymbol symbol); boolean isAndroidTurn(); void generateAndroidTurn(ContentResolver contentResolver, int[] selectedXBoxIds, int[] selectedOBoxIds);  }