我有这个Scala项目,我正在使用模仿(mockito-core 3.0)进行测试
这是我要模拟的函数的函数签名
def hset[V: ByteStringSerializer](key: String, field: String, value: V): Future[Boolean] = ...
这不起作用
verify(mockObj, never()).hset(anyString(), anyString(), anyLong())
此错误提示
Invalid use of argument matchers!
4 matchers expected, 3 recorded:
不知道为什么当函数具有3个具有泛型类型的参数时,为什么期望4个匹配器
此作品
verify(mockObj, never()).hset("a", "b", 3.0)
这是因为我使用的scala代码无法与mockito核心一起正常运行?