Search in sources :

Example 11 with APIManagerConfigurationServiceImpl

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();
}
Also used : APIManagerConfiguration(org.wso2.carbon.apimgt.impl.APIManagerConfiguration) APIManagerConfigurationServiceImpl(org.wso2.carbon.apimgt.impl.APIManagerConfigurationServiceImpl) Before(org.junit.Before)

Example 12 with APIManagerConfigurationServiceImpl

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();
}
Also used : APIManagerConfiguration(org.wso2.carbon.apimgt.impl.APIManagerConfiguration) APIManagerConfigurationServiceImpl(org.wso2.carbon.apimgt.impl.APIManagerConfigurationServiceImpl) Before(org.junit.Before)

Aggregations

APIManagerConfigurationServiceImpl (org.wso2.carbon.apimgt.impl.APIManagerConfigurationServiceImpl)11 APIManagerConfiguration (org.wso2.carbon.apimgt.impl.APIManagerConfiguration)10 Before (org.junit.Before)9 APIManagerConfigurationService (org.wso2.carbon.apimgt.impl.APIManagerConfigurationService)4 Test (org.junit.Test)3 API (org.wso2.carbon.apimgt.api.model.API)3 APIIdentifier (org.wso2.carbon.apimgt.api.model.APIIdentifier)3 WorkflowDTO (org.wso2.carbon.apimgt.impl.dto.WorkflowDTO)3 ServiceReferenceHolder (org.wso2.carbon.apimgt.impl.internal.ServiceReferenceHolder)3 UserStoreManager (org.wso2.carbon.user.core.UserStoreManager)3 RealmService (org.wso2.carbon.user.core.service.RealmService)3 TenantManager (org.wso2.carbon.user.core.tenant.TenantManager)3 IOException (java.io.IOException)2 ArrayList (java.util.ArrayList)2 APIManagementException (org.wso2.carbon.apimgt.api.APIManagementException)2 Environment (org.wso2.carbon.apimgt.api.model.Environment)2 KeyManager (org.wso2.carbon.apimgt.api.model.KeyManager)2 WebsubSubscriptionConfiguration (org.wso2.carbon.apimgt.api.model.WebsubSubscriptionConfiguration)2 Notifier (org.wso2.carbon.apimgt.impl.notifier.Notifier)2 APITemplateBuilderImpl (org.wso2.carbon.apimgt.rest.api.publisher.v1.common.template.APITemplateBuilderImpl)2