Solved

How to write Unit testing for JSF

Posted on 2009-07-14
1
1,163 Views
Last Modified: 2013-12-13
I have a simple JSF Login page which hits the database and compare with the user inputs and send's to appropriate page showing Success/Failure, How to write a Unit test for this Application.
Using Netbeans6.5, Tomcat 6.0,

Would like to prefer Junit.
Any sample code or a link which will show the configuration in Netbeans would be great.

Thanks
0
Comment
Question by:anil7734
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 20

Accepted Solution

by:
a_b earned 500 total points
ID: 24851793
Since you need to test a webpage you might be better off writing test cases in httpunit. You can automate clicks and data entry through that. Junit is only useful if you want to do unit test at the code level.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This video shows how use content aware, what it’s used for, and when to use it over other tools.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question