I\'m using mockito with scalatest. I have following problem when using matcher with value class.
import org.scalat
The proper solution is:
case class StringValue(val text: String) extends AnyVal
case class LongValue(val value: Long) extends AnyVal
val eqFirst: StringValue = StringValue(org.mockito.Matchers.eq("first"))
val anySecond: StringValue = StringValue(org.mockito.Matchers.any[String])
val eqFirst: LongValue = LongValue(org.mockito.Matchers.eq(1L))
val anySecond: LongValue = LongValue(org.mockito.Matchers.any[Long])