I'm trying to build some tests around a method that reads some data from the session.
I tried extending FakeRequest
and overriding the session
value, but I get an error on compilation saying that session
has to be a val
when overriden, which won't work.
How can I modify a FakeRequest()
to add values to the session?
There is a pull request about this functionality
See https://github.com/playframework/Play20/pull/103
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With