예제 #1
0
 @Test
 public void gendervalueTest() {
   System.out.println("StudentTest");
   Student instance = new Student();
   String expResult = "male";
   instance.setGender(expResult);
   String result = instance.getGender();
   assertEquals(expResult, result);
 }
예제 #2
0
 @Test
 public void nameStudentTest() {
   System.out.println("StudentTest");
   Student instance = new Student("Bill Smith", "c0123456", "male", 89.3);
   assertEquals("Bill Smith", instance.getName());
   assertEquals("c0123456", instance.getId());
   assertEquals("male", instance.getGender());
   assertEquals(89.3, instance.getGrade(), 0.0);
 }