Skip to content

Commit

Permalink
Update AnyMatchers.scala (#1112)
Browse files Browse the repository at this point in the history
This fixes a problem where you can't use beEqualTo as a parameter matcher when mocking in mockito.
  • Loading branch information
dekelatwix authored and etorreborre committed Oct 31, 2022
1 parent e21edc9 commit c584f23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class BeFalseMatcher extends Matcher[Boolean]:

/** Equality Matcher
*/
class BeEqualTo(t: =>Any) extends EqualityMatcher(t)
class BeEqualTo[T](t: =>T) extends EqualityMatcher(t)

/** This matcher always matches any value of type T
*/
Expand Down

0 comments on commit c584f23

Please sign in to comment.