コード例 #1
0
 @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);
 }
コード例 #2
0
  @Test
  public void test_returnCorrectCredits() {
    System.out.println("Test correct credits is returned...");
    CourseEnrollment C = new CourseEnrollment("java", 4, "A");

    assertTrue(C.getCredits() == 4);
  }