if(isTokenValid(request) == false) {
// don't perform the action and route the user
// to an appropriate location
}
it'll always fail. This is because, the token is set in the request by the
The application functions correctly, however, I cannot run my unit tests :(
add the following before your test :
ReplyDeleteaddRequestParameter(Constants.TOKEN_KEY, "testToken");
getSession().setAttribute(Globals.TRANSACTION_TOKEN_KEY, "testToken");