コード例 #1
0
 /**
  * Sets up the test before its execution, by creating the dao and the transaction.
  *
  * @throws Exception if an unexpected exception occurs.
  */
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   basicDao = SampleDaoFactory.getBasicDao();
   tx = HibernateUtil.currentSession().beginTransaction();
 }