Meaningless Drivel is fun!*
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
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: 16065
    
  21

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?