val request = fakeRequest("POST", "/user").withJsonBody(Json.parse(
s"""{"first_name": "Alice",
| "last_name": "Doe",
| "credentials": {
| "username": "alice",
| "password": "secret"
| }
|}""".stripMargin))
val apiResult = call(testController.createUser, request)
In my controller unit test, I got something like above before.
However when I upgrade to Play 2.5, I got some error:
could not find implicit value for parameter mat: akka.stream.Materializer
However, when I did like docs,
I still have some error like no such method error about FakeApplication for ScalaTestPlus.
Anyone has idea about this?
WHY I got so many broken changes after upgrading to Play 2.5??????