Skip to content

Instantly share code, notes, and snippets.

@splittingfield
Created December 15, 2011 14:23
Show Gist options
  • Save splittingfield/1481257 to your computer and use it in GitHub Desktop.
Save splittingfield/1481257 to your computer and use it in GitHub Desktop.
Slow Mockito
describe(“A tree”) {
it("can have a root”){
val n1 = mock[Node]
when(n1.id).thenReturn("1”)
val g = Tree(n1)
g.root.id should be ("1")
}
}
test output with time.
[info] A Tree
[info] - can have a root (4 seconds, 281 milliseconds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment