This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 + Hibernate JUnit test Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 + Hibernate JUnit test" Watch "Struts 2 + Hibernate JUnit test" New topic
Author

Struts 2 + Hibernate JUnit test

Mohan rvscas
Ranch Hand

Joined: Jul 03, 2010
Posts: 39
Hi Friends,

I am new to hibernate and struts2.
can i test hibernate with struts2 using junit. i have searched many forums they have been talking about Spring + Struts 2 Junit test.
Now i need only for struts2 with hibernate no need for spring.
if any one knows the process or any web link please forward to me.
This is urgent.

Thanks
Mohan rvscas
Ranch Hand

Joined: Jul 03, 2010
Posts: 39
Hi friends,

I have cleared the issue and now the session is created and working good.

if anybody having this same issue just refer the following sample coding. This is simple useful for you to find out the problem.



BaseS2TestCase.java should extends on the test class for unit test like following



Have a nice time.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 + Hibernate JUnit test
 
Similar Threads
Struts2 - Difficulties in handling form data
Introducing Spring in Struts2 Project
Junit testing for Struts2
Integrating Struts2 with Hibernate
Struts2 with Portlet