DBUnit
When testing code that access and modify the database, you’ll need to insert the initial data into the database, execute your code, and check if the data in the database is exactly what you expected after executing your code. To automate this kind of testing you’ll need any kind of tool that can do all [...]
JUnit
JUnit is a simple, open source framework to write and run repeatable tests. Installing JUnit 1. Download the latest version of JUnit, from junit.org. 2. Then install JUnit on your platform: Windows 1.Unzip the junit.zip distribution file to a directory referred to as %JUNIT_HOME%. 2. Add JUnit to the classpath: set CLASSPATH=%CLASSPATH%;%JUNIT_HOME%\junit.jar Unix (bash) 1.Unzip [...]
Unit testing
Real stupidity beats artificial intelligence every time. Terry Pratchett. Testing your application cannot be reduced to test that your application normal use would work, you have to test that every piece of code works at it should. Unit testing consist on identifying and consistently verifying each software unit, checking inputs, state and outputs of an [...]