wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 120
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: 15952
    
  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.
 
 
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?