use of org.asqatasun.service.ProcessRemarkService in project Asqatasun by Asqatasun.
the class Rgaa30Rule090104 method check.
@Override
protected void check(SSPHandler sspHandler, TestSolutionHandler testSolutionHandler) {
super.check(sspHandler, testSolutionHandler);
ProcessRemarkService prs = sspHandler.getProcessRemarkService();
if (CollectionUtils.isNotEmpty(prs.getRemarkList())) {
for (ProcessRemark pr : prs.getRemarkList()) {
addElementNameEvidenceElementToOverrideTarget(prs, pr);
}
}
}
use of org.asqatasun.service.ProcessRemarkService in project Asqatasun by Asqatasun.
the class Rgaa32016Rule090104 method check.
@Override
protected void check(SSPHandler sspHandler, TestSolutionHandler testSolutionHandler) {
super.check(sspHandler, testSolutionHandler);
ProcessRemarkService prs = sspHandler.getProcessRemarkService();
if (CollectionUtils.isNotEmpty(prs.getRemarkList())) {
for (ProcessRemark pr : prs.getRemarkList()) {
addElementNameEvidenceElementToOverrideTarget(prs, pr);
}
}
}
use of org.asqatasun.service.ProcessRemarkService in project Asqatasun by Asqatasun.
the class Rgaa22Rule10021 method check.
@Override
protected void check(SSPHandler sspHandler, TestSolutionHandler testSolutionHandler) {
super.check(sspHandler, testSolutionHandler);
ProcessRemarkService prs = sspHandler.getProcessRemarkService();
if (CollectionUtils.isNotEmpty(prs.getRemarkList())) {
for (ProcessRemark pr : prs.getRemarkList()) {
addElementNameEvidenceElementToOverrideTarget(prs, pr);
}
}
}
use of org.asqatasun.service.ProcessRemarkService in project Asqatasun by Asqatasun.
the class SeoRule01071 method processImpl.
@Override
protected ProcessResult processImpl(SSPHandler sspHandler) {
ProcessRemarkService processRemarkService = sspHandler.getProcessRemarkService();
processRemarkService.resetService();
TestSolution testSolution = TestSolution.PASSED;
try {
URL url = new URL(sspHandler.getSSP().getURI());
if (StringUtils.isNotBlank(url.getQuery())) {
testSolution = TestSolution.FAILED;
}
} catch (MalformedURLException ex) {
testSolution = TestSolution.NOT_APPLICABLE;
}
if (testSolution.equals(TestSolution.FAILED)) {
processRemarkService.addProcessRemark(TestSolution.FAILED, RemarkMessageStore.URL_PARAMETERS_DETECTED);
}
return processResultDataService.getDefiniteResult(test, sspHandler.getPage(), testSolution, processRemarkService.getRemarkList());
}
use of org.asqatasun.service.ProcessRemarkService in project Asqatasun by Asqatasun.
the class Aw22Rule09014 method check.
@Override
protected void check(SSPHandler sspHandler, TestSolutionHandler testSolutionHandler) {
super.check(sspHandler, testSolutionHandler);
ProcessRemarkService prs = sspHandler.getProcessRemarkService();
if (CollectionUtils.isNotEmpty(prs.getRemarkList())) {
for (ProcessRemark pr : prs.getRemarkList()) {
addElementNameEvidenceElementToOverrideTarget(prs, pr);
}
}
}
Aggregations