Приглашаем посетить
Толстой А.Н. (tolstoy-a-n.lit-info.ru)

Section 6-2.  Variations

Previous
Table of Contents
Next

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.


Previous
Table of Contents
Next