0
메소드 route, status, 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
}
}
}
}