@Test public void test_setCorrectCredits() { System.out.println("Test correct credits is set..."); CourseEnrollment C = new CourseEnrollment("java", 4, "C"); C.setCredits(3); assertTrue(C.getCredits() == 3); }
@Test public void test_returnCorrectCredits() { System.out.println("Test correct credits is returned..."); CourseEnrollment C = new CourseEnrollment("java", 4, "A"); assertTrue(C.getCredits() == 4); }