File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 118
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: 15632
    
  15

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?
 
Similar Threads
unit : clarifications
Application Server vs JUnit Performance Issue
JSF 1.* in Glassfish
testing JSP applications with JUnit
Implementors of JSF and whose implementation to use?