Example #1
0
 /** addQualifications test */
 @Test
 public void testAddQualification() {
   assertEquals(doctor1.getQualifications().size(), 0);
   doctor1.getQualifications().add(qualification1);
   assertEquals(doctor1.getQualifications().size(), 1);
   doctor1.getQualifications().add(qualification2);
   assertEquals(doctor1.getQualifications().size(), 2);
 }
Example #2
0
 /** set and getQualifications test */
 @Test
 public void testSetAndGetQualifications() {
   assertEquals(doctor1.getQualifications().size(), 0);
   doctor1.setQualifications(newQualifications);
   assertEquals(doctor1.getQualifications().size(), 2);
 }