@Test public void gradeTest() { System.out.println("StudentTest"); Student instance = new Student(); double expResult = 0.0; double result = instance.getGrade(); assertEquals(expResult, result, 0.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); }