Permalink
Browse files

fixed Json test

  • Loading branch information...
1 parent 527d535 commit c57d364fec3c2f30e9487d4685b9e35420e5e555 @sadache sadache committed Sep 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 framework/test/integrationtest/app/models/User.scala
@@ -15,11 +15,11 @@ object Protocol {
)
)
- def reads(json: JsValue): User = User(
+ def reads(json: JsValue): JsResult[User] = JsSuccess(User(
(json \ "id").as[Long],
(json \ "name").as[String],
(json \ "favThings").as[List[String]]
- )
+ ))
}

0 comments on commit c57d364

Please sign in to comment.