Skip to content

Instantly share code, notes, and snippets.

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