You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to java 19 we started seeing InvalidUseOfMatchersException errors coming from mockito.
trait Foo {
def bar(a: String, b: Int = 1): Int
}
object Test extends org.mockito.IdiomaticMockito {
def main(args: Array[String]): Unit = {
val x = mock[Foo]
x.bar("a").returns(2)
}
}
Above code works fine on java 17 but throws on java 19.
The text was updated successfully, but these errors were encountered:
After upgrading to java 19 we started seeing
InvalidUseOfMatchersException
errors coming from mockito.Above code works fine on java 17 but throws on java 19.
The text was updated successfully, but these errors were encountered: