2
trait Operator{
  def addRole(index:Int,roles:String*)
  def addRole(attrIndexes:Set[Int],role:String)
}

addRolescalaMock を使用して最初のものをテストする方法は?

試してみましたが、すべてうまくいきません。

(fakeContext.addRole(_:Int,_:String)) expects(1,Role.label)
(fakeContext.addRole _:(Int,Seq[String])=> Unit)
(fakeContext.addRole _:(Int,String) =>Unit) expects(1,Role.label)
4

0 に答える 0