Search in sources :

Example 1 with ScanData

use of com.mercedesbenz.sechub.domain.scan.admin.ScanData in project sechub by mercedes-benz.

the class DownloadsFullScanDataForJobRestDocTest method before.

@Before
public void before() {
    jobUUID = UUID.randomUUID();
    FullScanData data = new FullScanData();
    ScanData d = new ScanData();
    d.productId = "productX";
    d.result = "{ 'result':'OK'}";
    d.metaData = "{}";
    data.allScanData.add(d);
    String config = "{}";
    ProjectScanLog log = new ProjectScanLog("theProject", jobUUID, "spartakus", config);
    data.allScanLogs.add(log);
    when(fullScanDataService.getFullScanData(jobUUID)).thenReturn(data);
}
Also used : FullScanData(com.mercedesbenz.sechub.domain.scan.admin.FullScanData) ProjectScanLog(com.mercedesbenz.sechub.domain.scan.log.ProjectScanLog) ScanData(com.mercedesbenz.sechub.domain.scan.admin.ScanData) FullScanData(com.mercedesbenz.sechub.domain.scan.admin.FullScanData) Before(org.junit.Before)

Aggregations

FullScanData (com.mercedesbenz.sechub.domain.scan.admin.FullScanData)1 ScanData (com.mercedesbenz.sechub.domain.scan.admin.ScanData)1 ProjectScanLog (com.mercedesbenz.sechub.domain.scan.log.ProjectScanLog)1 Before (org.junit.Before)1