Beispiel #1
0
 /**
  * Test method for {@link
  * org.transferobject.core.DBUtil#addStudent(org.transferobject.student.StudentVO)}.
  */
 @Test
 public void testAddStudent() {
   StudentVO student = new StudentVO();
   student.setRegistrationNumber("STDREG00001");
   student.setStudentName("Jeremy Clarkson");
   assertTrue("Student added", DBUtil.addStudent(student));
 }
Beispiel #2
0
 /** Test method for {@link org.transferobject.core.DBUtil#removeStudent(java.lang.String)}. */
 @Test
 public void testRemoveStudent() {
   testAddStudent();
   assertTrue("Remove student", DBUtil.removeStudent("STDREG00001"));
 }
Beispiel #3
0
 /** Test method for {@link org.transferobject.core.DBUtil#getStudent(java.lang.String)}. */
 @Test
 public void testGetStudent() {
   testAddStudent();
   StudentVO student = DBUtil.getStudent("STDREG00001");
   assertNotNull(student);
 }