Here are 3 exercises to practice software testing concepts:
1. Write unit tests for a class or method in one of your projects using JUnit.
2. Measure the code coverage of your unit tests using a tool like Emma.
3. Randomize one of your unit tests by turning it into a property with extracted parameters. Write a data generator and instantiate the property 100 times with random test data.
Software Analysis and Testing, MFES Universidade do Minho by Joost Visser, Software Improvement Group © 2010.