Esempio n. 1
0
 /**
  * Test method for {@link
  * com.yahoo.petermwenda83.persistence.staff.ClassTeacherDAO#getClassTeacherList()}.
  */
 @Ignore
 @Test
 public void testGetClassTeacherList() {
   store =
       new ClassTeacherDAO(databaseName, Host, databaseUsername, databasePassword, databasePort);
   List<ClassTeacher> list = store.getClassTeacherList();
   for (ClassTeacher ss : list) {
     System.out.println(ss);
   }
 }
Esempio n. 2
0
 /**
  * Test method for {@link
  * com.yahoo.petermwenda83.persistence.staff.ClassTeacherDAO#updateClassTeacher(com.yahoo.petermwenda83.bean.staff.ClassTeacher)}.
  */
 @Ignore
 @Test
 public void testUpdateClassTeacher() {
   store =
       new ClassTeacherDAO(databaseName, Host, databaseUsername, databasePassword, databasePort);
   ClassTeacher c = new ClassTeacher();
   c.setTeacherUuid(TEACHER_UUID_NEW);
   c.setClassRoomUuid(CLASS_ROOM_UUID_UPDATE);
   assertTrue(store.updateClassTeacher(c));
 }