Search in sources :

Example 1 with IntHttpClientTestHelper

use of com.synopsys.integration.blackduck.http.client.IntHttpClientTestHelper in project blackduck-common by blackducksoftware.

the class ProjectMappingServiceTest method setUp.

@BeforeEach
void setUp() throws IntegrationException {
    IntHttpClientTestHelper intHttpClientTestHelper = new IntHttpClientTestHelper();
    blackDuckServicesFactory = intHttpClientTestHelper.createBlackDuckServicesFactory();
    projectMappingService = blackDuckServicesFactory.createProjectMappingService();
    ProjectService projectService = blackDuckServicesFactory.createProjectService();
    String testProjectName = intHttpClientTestHelper.getProperty("TEST_PROJECT");
    String testProjectVersion = intHttpClientTestHelper.getProperty("TEST_VERSION");
    ProjectSyncModel projectSyncModel = ProjectSyncModel.createWithDefaults(testProjectName, testProjectVersion);
    ProjectVersionWrapper projectVersionWrapper = projectService.syncProjectAndVersion(projectSyncModel);
    projectView = projectVersionWrapper.getProjectView();
}
Also used : ProjectSyncModel(com.synopsys.integration.blackduck.service.model.ProjectSyncModel) ProjectVersionWrapper(com.synopsys.integration.blackduck.service.model.ProjectVersionWrapper) IntHttpClientTestHelper(com.synopsys.integration.blackduck.http.client.IntHttpClientTestHelper) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

IntHttpClientTestHelper (com.synopsys.integration.blackduck.http.client.IntHttpClientTestHelper)1 ProjectSyncModel (com.synopsys.integration.blackduck.service.model.ProjectSyncModel)1 ProjectVersionWrapper (com.synopsys.integration.blackduck.service.model.ProjectVersionWrapper)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1