trait Operator{
def addRole(index:Int,roles:String*)
def addRole(attrIndexes:Set[Int],role:String)
}
addRole
scalaMock を使用して最初のものをテストする方法は?
試してみましたが、すべてうまくいきません。
(fakeContext.addRole(_:Int,_:String)) expects(1,Role.label)
(fakeContext.addRole _:(Int,Seq[String])=> Unit)
(fakeContext.addRole _:(Int,String) =>Unit) expects(1,Role.label)