Skip to content


Unable to return a mock from another mock #9

ftokarev opened this Issue · 0 comments

2 participants


The code:
```val child = mock[Child]
val parent = mock[Parent]
parent expects 'getChild returns child

results in:
```com.borachio.ExpectationException: Unexpected: 'toString
  at com.borachio.AbstractMockFactory$class.verifyExpectations(AbstractMockFactory.scala:35)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.