This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session attribute is not setting whenjunit testcase invoked

Mohan rvscas
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi fiends,

when i am trying to test my java class using junit test case i encountered the problem.

The problem occurred when ever i am try to set the session attribute.

I am using struts 2 framework.

Junit test class name UserActionTest

Under UserAction class the method is like

Can any one help me to get the solution.

Thanks in advance.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic