use of org.asqatasun.entity.audit.ProcessRemark in project Asqatasun by Asqatasun.
the class Rgaa22Rule05111Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa22.Test.5.11-3NMI-01");
// check test result
assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
// check test has no remark
assertNotNull(processResult.getRemarkSet());
// check number of elements in the page
assertEquals(1, processResult.getElementCounter());
// check type of remarks and their value
assertNotNull(processResult.getRemarkSet());
SourceCodeRemark processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
assertEquals(MANUAL_CHECK_ON_ELEMENTS_MSG, processRemark.getMessageCode());
// check number of evidence elements and their value
assertEquals(1, processRemark.getElementList().size());
EvidenceElement ee = processRemark.getElementList().iterator().next();
assertEquals(TEXT_ELEMENT2, ee.getEvidence().getCode());
//----------------------------------------------------------------------
//------------------------------3NMI-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.5.11-3NMI-02");
// check test result
assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
// check test has no remark
assertNotNull(processResult.getRemarkSet());
// check number of elements in the page
assertEquals(1, processResult.getElementCounter());
// check type of remarks and their value
assertNotNull(processResult.getRemarkSet());
processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
assertEquals(MANUAL_CHECK_ON_ELEMENTS_MSG, processRemark.getMessageCode());
// check number of evidence elements and their value
assertEquals(1, processRemark.getElementList().size());
ee = processRemark.getElementList().iterator().next();
assertEquals(TEXT_ELEMENT2, ee.getEvidence().getCode());
//----------------------------------------------------------------------
//------------------------------3NMI-03------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.5.11-3NMI-03");
// check test result
assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
// check test has no remark
assertNotNull(processResult.getRemarkSet());
// check number of elements in the page
assertEquals(2, processResult.getElementCounter());
// check number, type and value of remarks
assertNotNull(processResult.getRemarkSet());
assertEquals(2, processResult.getRemarkSet().size());
for (ProcessRemark remark : processResult.getRemarkSet()) {
processRemark = (SourceCodeRemark) remark;
assertEquals(MANUAL_CHECK_ON_ELEMENTS_MSG, processRemark.getMessageCode());
assertNotNull(processRemark.getElementList());
assertEquals(1, processRemark.getElementList().size());
ee = processRemark.getElementList().iterator().next();
assertEquals(TEXT_ELEMENT2, ee.getEvidence().getCode());
}
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.5.11-4NA-01");
// check number of elements in the page
assertEquals(0, processResult.getElementCounter());
// check test result
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
}
use of org.asqatasun.entity.audit.ProcessRemark in project Asqatasun by Asqatasun.
the class Rgaa22Rule05161Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa22.Test.5.16-3NMI-01");
// check test result
assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
// check test has no remark
assertNotNull(processResult.getRemarkSet());
// check number of elements in the page
assertEquals(3, processResult.getElementCounter());
// check type of remarks and their value
assertNotNull(processResult.getRemarkSet());
SourceCodeRemark processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
assertEquals(MANUAL_CHECK_ON_ELEMENTS_MSG, processRemark.getMessageCode());
// check number, type and value of remarks
assertNotNull(processResult.getRemarkSet());
assertEquals(3, processResult.getRemarkSet().size());
for (ProcessRemark remark : processResult.getRemarkSet()) {
processRemark = (SourceCodeRemark) remark;
assertEquals(MANUAL_CHECK_ON_ELEMENTS_MSG, processRemark.getMessageCode());
}
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.5.16-4NA-01");
// check number of elements in the page
assertEquals(0, processResult.getElementCounter());
// check test result
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
}
use of org.asqatasun.entity.audit.ProcessRemark in project Asqatasun by Asqatasun.
the class Rgaa22Rule09031Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa22.Test.9.3-1Passed-01");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-02");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-03------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-03");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-04------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-04");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-05------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-05");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-06------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-06");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-07------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-07");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-08------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-08");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-09------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-09");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-10------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-10");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-11------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-11");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-12------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-12");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-13------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-13");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-14------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-14");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-15------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-1Passed-15");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-2Failed-01");
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
// check test result
assertEquals(TestSolution.FAILED, processResult.getValue());
// check number of remarks and their value
assertEquals(1, processResult.getRemarkSet().size());
ProcessRemark processRemark = ((ProcessRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
assertEquals(RemarkMessageStore.INVALID_DOCTYPE_MSG, processRemark.getMessageCode());
// check number of evidence elements and their value
assertNull(processRemark.getElementList());
//----------------------------------------------------------------------
//------------------------------2Failed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-2Failed-02");
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
// check test result
assertEquals(TestSolution.FAILED, processResult.getValue());
// check number of remarks and their value
assertEquals(1, processResult.getRemarkSet().size());
processRemark = ((ProcessRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
assertEquals(RemarkMessageStore.INVALID_DOCTYPE_MSG, processRemark.getMessageCode());
// check number of evidence elements and their value
assertNull(processRemark.getElementList());
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.3-4NA-01");
// check test result
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page (no counter management here,
// we test the presence of one tag in the page)
assertEquals(0, processResult.getElementCounter());
}
use of org.asqatasun.entity.audit.ProcessRemark in project Asqatasun by Asqatasun.
the class Rgaa22Rule09061Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01---------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa22.Test.9.6-1Passed-01");
// check number of elements in the page
assertEquals(1, processResult.getElementCounter());
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check number of remarks and their value
assertNull(processResult.getRemarkSet());
//----------------------------------------------------------------------
//----------------------------2Failed-01--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.6-2Failed-01");
// check number of elements in the page
assertEquals(0, processResult.getElementCounter());
// check test result
assertEquals(TestSolution.FAILED, processResult.getValue());
// check number of remarks and their value
assertEquals(1, processResult.getRemarkSet().size());
assertTrue(processResult.getRemarkSet().iterator().next() instanceof ProcessRemark);
assertEquals(RemarkMessageStore.TITLE_TAG_MISSING_MSG, processResult.getRemarkSet().iterator().next().getMessageCode());
assertEquals(TestSolution.FAILED, processResult.getRemarkSet().iterator().next().getIssue());
//----------------------------------------------------------------------
//----------------------------2Failed-02--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.6-2Failed-02");
// check number of elements in the page
assertEquals(0, processResult.getElementCounter());
// check test result
assertEquals(TestSolution.FAILED, processResult.getValue());
// check number of remarks and their value
assertEquals(1, processResult.getRemarkSet().size());
assertTrue(processResult.getRemarkSet().iterator().next() instanceof ProcessRemark);
assertEquals(RemarkMessageStore.TITLE_TAG_MISSING_MSG, processResult.getRemarkSet().iterator().next().getMessageCode());
assertEquals(TestSolution.FAILED, processResult.getRemarkSet().iterator().next().getIssue());
//----------------------------------------------------------------------
//----------------------------2Failed-03--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.9.6-2Failed-03");
// check number of elements in the page
assertEquals(2, processResult.getElementCounter());
// check test result
assertEquals(TestSolution.FAILED, processResult.getValue());
// check number of remarks and their value
assertEquals(1, processResult.getRemarkSet().size());
assertTrue(processResult.getRemarkSet().iterator().next() instanceof ProcessRemark);
assertEquals(RemarkMessageStore.TITLE_TAG_MISSING_MSG, processResult.getRemarkSet().iterator().next().getMessageCode());
assertEquals(TestSolution.FAILED, processResult.getRemarkSet().iterator().next().getIssue());
}
use of org.asqatasun.entity.audit.ProcessRemark in project Asqatasun by Asqatasun.
the class Rgaa22Rule10011Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa22.Test.10.1-1Passed-01");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page
assertEquals(1, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------1Passed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.10.1-1Passed-02");
// check test result
assertEquals(TestSolution.PASSED, processResult.getValue());
// check test has no remark
assertNull(processResult.getRemarkSet());
// check number of elements in the page
assertEquals(2, processResult.getElementCounter());
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.10.1-2Failed-01");
// check number of elements in the page
assertEquals(0, processResult.getElementCounter());
// check test result
assertEquals(TestSolution.FAILED, processResult.getValue());
// check number of remarks and their value
assertEquals(1, processResult.getRemarkSet().size());
assertTrue(processResult.getRemarkSet().iterator().next() instanceof ProcessRemark);
assertEquals(RemarkMessageStore.H1_TAG_MISSING_MSG, processResult.getRemarkSet().iterator().next().getMessageCode());
//----------------------------------------------------------------------
//------------------------------2Failed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa22.Test.10.1-2Failed-02");
// check number of elements in the page
assertEquals(0, processResult.getElementCounter());
// check test result
assertEquals(TestSolution.FAILED, processResult.getValue());
// check number of remarks and their value
assertEquals(1, processResult.getRemarkSet().size());
assertTrue(processResult.getRemarkSet().iterator().next() instanceof ProcessRemark);
assertEquals(RemarkMessageStore.H1_TAG_MISSING_MSG, processResult.getRemarkSet().iterator().next().getMessageCode());
}
Aggregations