0

I can't find a nice Scala DSL way to specify that a mock was not called at all after a specified duration.

Something like

aMock wasNever calledAgain after 2.seconds

The doc also doesn't mention anthing. https://github.com/mockito/mockito-scala

UPDATE: See https://github.com/mockito/mockito-scala/issues/253

Chris W.
  • 2,266
  • 20
  • 40
  • You can use eventually from scala test and then validate it with patience config. – Shankar Shastri Jun 16 '20 at 14:50
  • I could, but with mockito-scala I am nearly there, so how about the solution inside mockito-scala? Is it possible or not? That is the question. – Chris W. Jun 16 '20 at 14:55
  • Also in my current project I would have a hard time with a dependency on Scalatest only for this. I personally love it, but I am currently working in a project using an old Specs2 version. So I would have a hard time (for good reasons) arguing to add a dependency on Scalatest just for this. – Chris W. Jun 17 '20 at 09:54

0 Answers0