Created
April 19, 2016 16:22
-
-
Save daveneedstoknow/bb3850b12c0cbd8d644a36c00d54015e to your computer and use it in GitHub Desktop.
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
@Test | |
public void shouldSpecifyBallLocationOnceWhenStopped() { | |
WheelObserver wheelObserver = mock(WheelObserver.class); | |
RouletteWheel wheel = new RouletteWheel(wheelObserver); | |
wheel.spin(0); | |
wheel.tick(20000); | |
wheel.tick(20001); | |
verify(wheelObserver, times(1)).stopped(anyInt()); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment