*
The moose likes JSF and the fly likes How to use JUnit test case in JSF based application? 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 » Java » JSF
Bookmark "How to use JUnit test case in JSF based application?" Watch "How to use JUnit test case in JSF based application?" New topic
Author

How to use JUnit test case in JSF based application?

Raghu Sha
Ranch Hand

Joined: Feb 02, 2013
Posts: 122
Hi,

I am using JSF, eclipse link and run in Galssfish server.
While running application, data source details are fetched from Glassfish server which is configured in persistence.xml.

How to fetch the same while running junit? (Server wont required to run junit)

Please send the code samples.

Thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

I'm not quite sure what you are asking. I use dbUnit for my persistence-related junit testing in JSF apps.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to use JUnit test case in JSF based application?
 
Similar Threads
unit : clarifications
JSF 1.* in Glassfish
testing JSP applications with JUnit
Application Server vs JUnit Performance Issue
Implementors of JSF and whose implementation to use?