简体   繁体   中英

Mockstrutstestcase testing Struts 1.2 App

I am using strutstestcase for testing my web application on struts 1.2. When test runs and control goes to my action the request.getSession(false), i called in my action, returns null.

could Anyone one help me what i am missing?

The problem was at my end. I am calling request.getSession(false) which returns null if session is not exist. request.getSession() gives me session and code works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM