I've recently starting learning java web development and I want to learn/understand:
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?
How do testing frameworks like TestNG, JUnit, etc. fit into the java code testing process?
Thanks.