Skip to content

Instantly share code, notes, and snippets.

@daveneedstoknow
Created April 19, 2016 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daveneedstoknow/bb3850b12c0cbd8d644a36c00d54015e to your computer and use it in GitHub Desktop.
Save daveneedstoknow/bb3850b12c0cbd8d644a36c00d54015e to your computer and use it in GitHub Desktop.
@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