| 12345678910111213141516171819 |
-
-
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- public class PetTest
- {
- private Pet pet = new Pet("Tom");
-
- @Test
- public void testPetSpeak(){
- String expected = "WHAT AM I";
- assertEquals(pet.speak(), expected);
- }
-
- }
|