123456789101112131415161718192021222324
  1. import org.junit.Assert;
  2. import org.junit.After;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. /**
  6. * The test class CatTest.
  7. *
  8. * @author (your name)
  9. * @version (a version number or a date)
  10. */
  11. public class CatTest
  12. {
  13. public void testCatSpeak(){
  14. Pet test = new Cat("tst");
  15. String expected = "meowmeowmeow";
  16. String actual = test.speak();
  17. Assert.assertEquals(expected,actual);
  18. }
  19. }