java - Login user session in functional Test. Play Framework 1.2.5 -


i need login user, can access methods return data need test.

i able login, http.request this.

    map<string, string> loginuserparamscompany5 = new hashmap<string, string>();     loginuserparamscompany5.put("username", "user@company.com");     loginuserparamscompany5.put("password", "userpassword");     http.response loginresponse = post("/login", loginuserparamscompany5); 

after user logged out.

string session = scope.session.current().get("logged"); 

this return null.

i want way keep user logged in, or login other way, can have access method need.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -