123456789101112131415161718 |
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
- public class PetTest
- {
- @Test
- public void testSet_Get_Name(){
- Pet pet = new Pet();
-
- String name = "Rhea";
- String expected = "Rhea";
- pet.setName(name);
- String actual = pet.getName();
-
- assertEquals(expected, actual);
- }
- }
|