2017-09-08 7 views
0

Ich bekomme diesen Fehler (überladene Methode) für Methode Route, Status, ContentAsJson. Irgendwelche Ideen warum?Überladen Methode Route mit Alternativen

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 
     } 
    } 
    } 
} 

Antwort

0

Ich bin nicht sicher, ob es hier oder nicht, wird nichts, aber in docs sie den folgenden Import empfehlen tun:

import play.api.test.Helpers._ 

und nur import play.api.test.Helpers importiert.