title: How to make JUnit tests in JSF application
body: <p>I want to create some JUnit tests during build time. How I can connect JSF application to database and make test SQL queries to test the code? As far as I can see in Netbeans simple tests can be done on pure Java code. Much of my code are SQL queries which must be tested for proper results.</p>