Skip to content

Instantly share code, notes, and snippets.

@rapodaca
Created June 29, 2009 16:18
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 rapodaca/137679 to your computer and use it in GitHub Desktop.
Save rapodaca/137679 to your computer and use it in GitHub Desktop.
public void testItStopsBranchingWhenMaximumDepthReached()
{
walker.setMaximumDepth(5);
when(path.size()).thenReturn(0, 1, 2, 3, 4, 5);
when(step.hasNextBond()).thenReturn(true, true, true, true, true, false);
when(step.nextStep(bond)).thenReturn(step);
when(step.nextBond()).thenReturn(bond);
doStep();
verify(step, times(5)).nextStep(bond);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment