This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 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: 16460
    
  23

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use JUnit test case in JSF based application?