| 1234567891011121314151617 |
-
-
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- public class CatTest
- {
- private Cat cat =new Cat("tom");
- @Test
- public void testCatSpeak(){
- String expected = "MEOW!";
- assertEquals(cat.speak(), expected);
- }
- }
|