I am working on Play Framework 1.2.x with Java. In one of my unit test I want to send cookie information as part of my functional test case. I have tried below code but it is not working. In the controller once I read the cookie it is returning null.
Any idea what I am missing here?
Cookie cookie = new Cookie(); cookie.name = "testTimeZone"; cookie.value = "-330"; cookie.maxAge = 30000; request.cookies.put(cookie.name, cookie); response = ApplicationTest.POST(request, url, null, null);