@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); }
@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); }