예제 #1
0
 /**
  * Test method for {@link
  * com.yahoo.petermwenda83.persistence.staff.TeacherSubClassDAO#getSubjectClass(java.lang.String)}.
  */
 @Ignore
 @Test
 public void testGetSubjectClass() {
   store =
       new TeacherSubClassDAO(
           databaseName, Host, databaseUsername, databasePassword, databasePort);
   TeacherSubClass t = new TeacherSubClass();
   t = store.getSubjectClass(TEACHER_UUID);
   assertEquals(t.getSubjectUuid(), SUB_UUID);
 }
예제 #2
0
 @Ignore
 @Test
 public void testGetSubjectsANDClassesList() {
   store =
       new TeacherSubClassDAO(
           databaseName, Host, databaseUsername, databasePassword, databasePort);
   List<TeacherSubClass> list = store.getSubjectsANDClassesList(TEACHER_UUID);
   for (TeacherSubClass l : list) {
     System.out.println(l);
   }
 }
예제 #3
0
 // @Ignore
 @Test
 public void testUpdateSubjectClass() {
   store =
       new TeacherSubClassDAO(
           databaseName, Host, databaseUsername, databasePassword, databasePort);
   TeacherSubClass t = new TeacherSubClass();
   t.setTeacherUuid(TEACHER_UUID);
   t.setSubjectUuid(SUB_UUID_UPDATE);
   t.setClassRoomUuid(CLASS_UUID_UPDATE);
   t.setSysUser(SYS_USER);
   assertTrue(store.updateSubjectClass(t));
 }