next up previous
Next: Installation testing Up: Test procedure Previous: Test procedure

Unit testing

The unit tests are divided into two classes, basic unit tests and functional tests. The main division factor is the time taken to run the unit test, which is long for more complex tests that setup server and use a client to test the connection an behaviour.

Basic unit tests test each individual class in a package in isolation to confirm basic functionality of each method. Initial unit testing is performed by WP2 for all our components. The units tests evolve with the code and so it is not considered feasible to maintain an up to date list of all unit tests in this document. Unit tests are distributed with the java security software and can be run by anyone building the service (the basic unit tests are run automatically in the default build).

Basic unit tests are written for most methods of the java-security package. These tests are intended to confirm that the methods are coded correctly. In addition to positive tests where the input parameters are expected to be valid and correct, negative tests, i.e methods called with invalid input are performed.

The functional tests set up servers and test by using client classes to connect and check the correct behaviour. The tests are run before releases are made.


next up previous
Next: Installation testing Up: Test procedure Previous: Test procedure
2004-05-05