use of com.mercedesbenz.sechub.sharedkernel.logging.AuditLogService in project sechub by mercedes-benz.
the class FalsePositiveJobDataServiceTest method before.
@Before
public void before() {
serviceToTest = new FalsePositiveJobDataService();
falsePositiveListValidation = mock(FalsePositiveJobDataListValidation.class);
configService = mock(ScanProjectConfigService.class);
userInputAssertion = mock(UserInputAssertion.class);
scanAssertService = mock(ScanAssertService.class);
auditLogService = mock(AuditLogService.class);
serviceToTest.falsePositiveJobDataListValidation = falsePositiveListValidation;
serviceToTest.configService = configService;
serviceToTest.scanAssertService = scanAssertService;
serviceToTest.userInputAssertion = userInputAssertion;
serviceToTest.auditLogService = auditLogService;
when(falsePositiveListValidation.validate(any(FalsePositiveJobDataList.class))).thenReturn(new ValidationResult());
/* we mock config service */
config = new ScanProjectConfig();
config.setData("{}");
when(configService.getOrCreate(eq(PROJECT_ID), eq(ScanProjectConfigID.FALSE_POSITIVE_CONFIGURATION), eq(Boolean.FALSE), any())).thenReturn(config);
}
Aggregations