/** * The test class DogTest. * * @author (your name) * @version (a version number or a date) */ public class DogTest extends junit.framework.TestCase { private Dog lassie; private Dog scooby; private Dog cujo; /** * Default constructor for test class DogTest */ public DogTest() { } /** * Sets up the test fixture. * * Called before every test case method. */ protected void setUp() { lassie = new Dog(); lassie.setAge(47); lassie.setSound("woof"); scooby = new Dog(); scooby.setAge(38); scooby.setSound("uhoh,rubble"); cujo = new Dog(); cujo.setAge(22); cujo.setSound("rrrrChomp"); } /** * Tears down the test fixture. * * Called after every test case method. */ protected void tearDown() { } }