As the title says. I was trying to implement a verification that verifies an exception was thrown, but i couldnt find the appropriate method because i was using the verify method provided by the TestsWithMocks class. It can't find the threw method then because the block uses ArgConstraintBuilder as this scope, instead of VerificationBuilder.
I suppose its an easy fix. For now I use the mocker reference directly.
As the title says. I was trying to implement a verification that verifies an exception was thrown, but i couldnt find the appropriate method because i was using the
verify
method provided by theTestsWithMocks
class. It can't find thethrew
method then because the block usesArgConstraintBuilder
as this scope, instead ofVerificationBuilder
.I suppose its an easy fix. For now I use the mocker reference directly.