use of com.checkmarx.sdk.service.scanner.CxClient in project cx-flow by checkmarx-ltd.
the class FilterScriptSteps method cxFlowGeneratesIssues.
@When("CxFlow generates issues from findings")
public void cxFlowGeneratesIssues() throws CheckmarxException, IOException {
RestTemplate restTemplateMock = getRestTemplateMock();
CxAuthService authClientMock = getAuthClientMock();
CxClient cxClientSpy = getCxClientSpy(restTemplateMock, authClientMock);
generateIssues(cxClientSpy);
}
use of com.checkmarx.sdk.service.scanner.CxClient in project cx-flow by checkmarx-ltd.
the class FilterScriptSteps method getCxClientSpy.
private CxClient getCxClientSpy(RestTemplate restTemplateMock, CxAuthService authClientMock) throws CheckmarxException {
CxClient cxClient = new CxService(authClientMock, cxProperties, cxLegacyService, restTemplateMock, null, filterInputFactory, filterValidator);
CxClient cxClientSpy = spy(cxClient);
doReturn(new CxScanSummary()).when(cxClientSpy).getScanSummaryByScanId(any());
return cxClientSpy;
}
Aggregations