use of com.mercedesbenz.sechub.domain.scan.project.FalsePositiveWebResponseMetaData in project sechub by mercedes-benz.
the class SerecoFalsePositiveWebScanStrategyTest method createValidTestFalsePositiveMetaData.
private FalsePositiveMetaData createValidTestFalsePositiveMetaData() {
FalsePositiveMetaData metaData = new FalsePositiveMetaData();
metaData.setCweId(4711);
metaData.setScanType(ScanType.WEB_SCAN);
FalsePositiveWebMetaData web = new FalsePositiveWebMetaData();
metaData.setWeb(web);
FalsePositiveWebRequestMetaData metaDataWebRequest = web.getRequest();
metaDataWebRequest.setAttackVector(ATTACK_VECTOR1);
metaDataWebRequest.setMethod(METHOD1);
metaDataWebRequest.setProtocol("protocol1");
metaDataWebRequest.setTarget(TARGET1);
metaDataWebRequest.setVersion("version1");
FalsePositiveWebResponseMetaData metaDataWebResponse = web.getResponse();
metaDataWebResponse.setEvidence(EVIDENCE1);
return metaData;
}
Aggregations