I've recently starting learning java web development and I want to learn/understand:
1. What constitutes good java test good? For example, if there is back-end java code that validates user input from a form and then inserts into a db table, what should the respective test code look like?
2. How do testing frameworks like TestNG, JUnit, etc. fit into the java code testing process?
Thanks. I strongly suggest you either make this a community wiki, or simply search "java testing", as I get literally hundreds of relevant hits.