Closed arbitrary-dev closed 2 years ago
you override withFixture
and by that, disable the verification mechanism that ScalaMock provides.
If you want to keep this, you will need to add a withExpectations
block yourself for example like this test suite does https://github.com/paulbutcher/ScalaMock/blob/7a1e192de3a65b007315fef0421ca94545562261/shared/src/test/scala/com/paulbutcher/test/mock/MockFunctionTest.scala#L38
ScalaMock Version
5.1.0 +
scalatest-3.2.9
Scala Version
2.13.6
Runtime
OpenJDK 64-Bit Server VM 11.0.10_p9 (build 11.0.10+9, mixed mode, sharing)
Please describe the expected behavior of the issue
Please provide a description of what actually happens
Reproducible Test Case