示例#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();
 }