123456789101112131415161718192021222324 |
-
-
- import org.junit.Assert;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- /**
- * The test class CatTest.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class CatTest
- {
- public void testCatSpeak(){
-
- Pet test = new Cat("tst");
- String expected = "meowmeowmeow";
- String actual = test.speak();
- Assert.assertEquals(expected,actual);
- }
- }
|