Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Spec test doesn't populate multiParams #155
I'm new to Scala and so to Finatra, but I found a serious bug in the testing part. If I pass a Map with parameters to the call, the multiParams HashMap doesn't get populated with it.
You can reproduce it with this:
It results in this:
I have tried to go after it and put some breakpoints, but I'm really just a newbie, so I found that the name parameter gets into the route (I saw /?name=James as path), but then it is not parsed into the multiParams map.
I have the following settings in IntelliJ IDEA 14 EAP:
Windows 7, JDK 1.8_05, Scala 2.11.1, Scalatest 2.2.0 (for 2.11)
Tell me if you need more information or if you can reproduce it or I do something totally wrong.
Oh, I didn't see that, in debug mode I found it to be under request.request._params: RequestParamMap, I have searched for it and found out that it will return POST or if not available the GET parameter with the given name, which fits my needs.