Created
March 10, 2013 19:45
-
-
Save izmajlowiczl/5130109 to your computer and use it in GitHub Desktop.
Zahhak's @testwith example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@TestWith({ | |
"0", | |
"1", | |
"2" | |
}) | |
public void AddScore_AddPositiveScore_IncreaseExistingScore(int value) throws Exception { | |
final UserScoreRepository userScoreRepositoryStub = Make_FakeUserScoreRepository(); | |
final User fakeUser = Make_User(); | |
final UserScoreService userScore = new UserScoreService(userScoreRepositoryStub); | |
final int scoreAfterAddingNewValue = userScore.add(fakeUser, value); | |
assertEquals(value, scoreAfterAddingNewValue); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment