예제 #1
0
 @Test
 public void testGetId() {
   assertEquals(
       "Should be same id as initialized in c" + "onstuctor",
       "Student1",
       studentAccessTest.getId());
 }
예제 #2
0
 @Test
 public void testSubmitAssignment() {
   assertTrue(!studentAccessTest.submitted);
   try {
     studentAccessTest.submitAssignment("./res/TAList.txt");
   } catch (FileNotFoundException e) {
     fail("could not submit file");
   }
   assertTrue(studentAccessTest.submitted);
 }