use of com.mercedesbenz.sechub.sereco.metadata.SerecoWebRequest in project sechub by mercedes-benz.
the class SerecoFalsePositiveWebScanStrategyTest method createValidTestVulnerability.
private SerecoVulnerability createValidTestVulnerability() {
SerecoVulnerability vulnerability = new SerecoVulnerability();
SerecoWeb web = new SerecoWeb();
vulnerability.getClassification().setCwe("" + CWE_ID_4711);
vulnerability.setWeb(web);
vulnerability.setScanType(ScanType.WEB_SCAN);
SerecoWebRequest request = web.getRequest();
request.setMethod(METHOD1);
request.setTarget(TARGET1);
request.setProtocol("protocol1");
request.setVersion("version1");
web.getResponse().setStatusCode(3333);
web.getAttack().setVector(ATTACK_VECTOR1);
SerecoWebEvidence evidence = new SerecoWebEvidence();
web.getAttack().setEvidence(evidence);
evidence.setSnippet(EVIDENCE1);
return vulnerability;
}
Aggregations