/** * 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)); }
/** Test method for {@link org.transferobject.core.DBUtil#removeStudent(java.lang.String)}. */ @Test public void testRemoveStudent() { testAddStudent(); assertTrue("Remove student", DBUtil.removeStudent("STDREG00001")); }
/** Test method for {@link org.transferobject.core.DBUtil#getStudent(java.lang.String)}. */ @Test public void testGetStudent() { testAddStudent(); StudentVO student = DBUtil.getStudent("STDREG00001"); assertNotNull(student); }