コード例 #1
0
  @BeforeClass
  public static void init() throws ConnectionPoolException, DaoException {

    userDao = SQLUserDao.getInstance();
    pool = ConnectionPool.getInstance();
    pool.init();

    user = new User();
    user.setLogin(USER_LOGIN);
    user.setPassword(USER_PASSWORD);
    user.setRole(USER_ROLE);
  }
コード例 #2
0
 @AfterClass
 public static void destroy() throws ConnectionPoolException {
   pool.dispose();
 }