6-2. Variations
What happens when you have two tests with slightly different setups? There are two possibilities:
If the setUp( ) code differs only slightly, move the code that differs from the setUp( ) code to the test method. If you really have a different setUp( ), you need a different test-case class. Name the class after the difference in the setup.
|