@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); }
@AfterClass public static void destroy() throws ConnectionPoolException { pool.dispose(); }