use of org.wso2.carbon.apimgt.impl.APIManagerConfigurationServiceImpl in project carbon-apimgt by wso2.
the class CertificateMgtDaoTest method setUp.
@Before
public void setUp() throws APIManagerDatabaseException, APIManagementException, SQLException, XMLStreamException, IOException, NamingException {
String dbConfigPath = System.getProperty("APIManagerDBConfigurationPath");
APIManagerConfiguration config = new APIManagerConfiguration();
initializeDatabase(dbConfigPath);
config.load(dbConfigPath);
ServiceReferenceHolder.getInstance().setAPIManagerConfigurationService(new APIManagerConfigurationServiceImpl(config));
APIMgtDBUtil.initialize();
certificateMgtDAO = CertificateMgtDAO.getInstance();
}
use of org.wso2.carbon.apimgt.impl.APIManagerConfigurationServiceImpl in project carbon-apimgt by wso2.
the class LoggingMgtDAOTest method setUp.
@Before
public void setUp() throws Exception {
String dbConfigPath = System.getProperty("APIManagerDBConfigurationPath");
APIManagerConfiguration config = new APIManagerConfiguration();
initializeDatabase(dbConfigPath);
config.load(dbConfigPath);
ServiceReferenceHolder.getInstance().setAPIManagerConfigurationService(new APIManagerConfigurationServiceImpl(config));
APIMgtDBUtil.initialize();
loggingMgtDAO = LoggingMgtDAO.getInstance();
}
Aggregations