Search in sources :

Example 6 with CxProject

use of com.checkmarx.sdk.dto.cx.CxProject in project checkmarx-spring-boot-java-sdk by checkmarx-ltd.

the class CxServiceIT method getProject.

@Test
public void getProject() {
    try {
        String teamId = service.getTeamId(properties.getTeam());
        Integer projectId = service.getProjectId(teamId, "Riches");
        CxProject project = service.getProject(projectId);
        assertNotNull(project);
        assertNotEquals(Integer.valueOf(-1), project.getId());
    } catch (CheckmarxException e) {
        fail("Unexpected CheckmarxException");
    }
}
Also used : CheckmarxException(com.checkmarx.sdk.exception.CheckmarxException) CxProject(com.checkmarx.sdk.dto.cx.CxProject) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Aggregations

CxProject (com.checkmarx.sdk.dto.cx.CxProject)6 CheckmarxException (com.checkmarx.sdk.exception.CheckmarxException)5 MachinaException (com.checkmarx.flow.exception.MachinaException)2 CompletableFuture (java.util.concurrent.CompletableFuture)2 ScanRequest (com.checkmarx.flow.dto.ScanRequest)1 InvalidCredentialsException (com.checkmarx.flow.exception.InvalidCredentialsException)1 ShardSession (com.checkmarx.sdk.ShardManager.ShardSession)1 ScanResults (com.checkmarx.sdk.dto.ScanResults)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 Test (org.junit.Test)1 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)1 HttpEntity (org.springframework.http.HttpEntity)1