aspose file tools*
The moose likes Struts and the fly likes session attribute is not setting whenjunit testcase invoked Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "session attribute is not setting whenjunit testcase invoked" Watch "session attribute is not setting whenjunit testcase invoked" New topic
Author

session attribute is not setting whenjunit testcase invoked

Mohan rvscas
Ranch Hand

Joined: Jul 03, 2010
Posts: 39
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session attribute is not setting whenjunit testcase invoked
 
Similar Threads
junit.awtui.TestRunner- classnotfound error
JUnit testing with int[] result
Struts 2 + Hibernate JUnit test
Struts2 Convention plugin with junit plugin
Junit testing for Struts2