0
我得到這個錯誤(重載方法)的方法路由,狀態,contentAsJson。任何想法爲什麼?重載的方法值路由與替代
import play.api.test._
import play.api.test.Helpers
import play.api.libs.json.Json
class ItemsSpec extends PlaySpecification {
"Items controller" should {
"list items" in new WithApplication {
route(FakeRequest(controllers.routes.Items.list())) match {
case Some(response) =>
status(response) must equalTo (OK)
contentAsJson(response) must equalTo (Json.arr())
case None => failure
}
}
}
}