public void initDB() {
this.userAccountDao = this.applicationContext.getBean( IUserAccountDao.class );
this.testUserAccount = this.applicationContext.getBean( "testUserAccount", UserAccount.class );
this.dataSource = this.applicationContext.getBean( SingleConnectionDataSource.class );
DBManager manager = this.applicationContext.getBean( DBManager.class );
try {
manager.initInternalDB();
Long id = this.userAccountDao.saveUserAccount( testUserAccount );
Assert.assertNotNull( id );
}
catch (SQLException e) {
log.error( e.getMessage(), e );