Search in sources :

Example 81 with SourceCodeRemark

use of org.asqatasun.entity.audit.SourceCodeRemark in project Asqatasun by Asqatasun.

the class Aw22Rule06052Test method setProcess.

@Override
protected void setProcess() {
    // ----------------------------------------------------------------------
    // ------------------------------3NMI-01---------------------------------
    // ----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("AW22.Test.6.5.2-3NMI-01");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    SourceCodeRemark processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(TestSolution.NEED_MORE_INFO, processRemark.getIssue());
    assertEquals(RemarkMessageStore.MANUAL_CHECK_ON_ELEMENTS_MSG, processRemark.getMessageCode());
    assertEquals(HtmlElementStore.IMG_ELEMENT, processRemark.getTarget());
    assertNotNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(1, processRemark.getElementList().size());
    EvidenceElement ee = processRemark.getElementList().iterator().next();
    assertTrue(StringUtils.contains(ee.getValue(), "mock-image.jpg"));
    assertEquals(SRC_ATTR, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------3NMI-02---------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.6.5.2-3NMI-02");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(TestSolution.NEED_MORE_INFO, processRemark.getIssue());
    assertEquals(RemarkMessageStore.MANUAL_CHECK_ON_ELEMENTS_MSG, processRemark.getMessageCode());
    assertEquals(HtmlElementStore.INPUT_ELEMENT, processRemark.getTarget());
    assertNotNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(1, processRemark.getElementList().size());
    ee = processRemark.getElementList().iterator().next();
    assertTrue(StringUtils.contains(ee.getValue(), "mock-image.jpg"));
    assertEquals(SRC_ATTR, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------4NA-01---------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.6.5.2-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
    assertEquals(0, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------4NA-01----------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.6.5.2-4NA-02");
    // check test result
    assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
    // check test has no remark
    assertNull(processResult.getRemarkSet());
    // check number of elements in the page
    assertEquals(0, processResult.getElementCounter());
}
Also used : LinkedHashSet(java.util.LinkedHashSet) EvidenceElement(org.asqatasun.entity.audit.EvidenceElement) ProcessResult(org.asqatasun.entity.audit.ProcessResult) SourceCodeRemark(org.asqatasun.entity.audit.SourceCodeRemark)

Example 82 with SourceCodeRemark

use of org.asqatasun.entity.audit.SourceCodeRemark in project Asqatasun by Asqatasun.

the class Aw22Rule01012Test method setProcess.

@Override
protected void setProcess() {
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-01------------------------------
    // ----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("AW22.Test.1.1.2-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(2, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-02------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.1.2-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());
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-03------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.1.2-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
    assertEquals(2, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-01------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.1.2-2Failed-01");
    // 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(2, processResult.getRemarkSet().size());
    SourceCodeRemark processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.ALT_MISSING_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals(HtmlElementStore.AREA_ELEMENT, processRemark.getTarget());
    assertNotNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(1, processRemark.getElementList().size());
    EvidenceElement ee = processRemark.getElementList().iterator().next();
    assertEquals(ABSENT_ATTRIBUTE_VALUE, ee.getValue());
    assertEquals(HREF_ATTR, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-02------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.1.2-2Failed-02");
    // 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(2, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.ALT_MISSING_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals(HtmlElementStore.AREA_ELEMENT, processRemark.getTarget());
    assertNotNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(1, processRemark.getElementList().size());
    ee = processRemark.getElementList().iterator().next();
    assertEquals(ABSENT_ATTRIBUTE_VALUE, ee.getValue());
    assertEquals(HREF_ATTR, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-03------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.1.2-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());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.ALT_MISSING_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals(HtmlElementStore.AREA_ELEMENT, processRemark.getTarget());
    assertNotNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(1, processRemark.getElementList().size());
    ee = processRemark.getElementList().iterator().next();
    assertTrue(StringUtils.contains(ee.getValue(), "mock-area-link.html"));
    assertEquals(HREF_ATTR, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------4NA-01------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.1.2-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
    assertEquals(0, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------4NA-02------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.1.2-4NA-02");
    // check test result
    assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
    // check test has no remark
    assertNull(processResult.getRemarkSet());
    // check number of elements in the page
    assertEquals(0, processResult.getElementCounter());
}
Also used : LinkedHashSet(java.util.LinkedHashSet) EvidenceElement(org.asqatasun.entity.audit.EvidenceElement) ProcessResult(org.asqatasun.entity.audit.ProcessResult) SourceCodeRemark(org.asqatasun.entity.audit.SourceCodeRemark)

Example 83 with SourceCodeRemark

use of org.asqatasun.entity.audit.SourceCodeRemark in project Asqatasun by Asqatasun.

the class Aw22Rule01046Test method setProcess.

@Override
protected void setProcess() {
    // ----------------------------------------------------------------------
    // ------------------------------3NMI-01---------------------------------
    // ----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("AW22.Test.1.4.6-3NMI-01");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    SourceCodeRemark processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.CHECK_CAPTCHA_ALTERNATIVE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.NEED_MORE_INFO, processRemark.getIssue());
    assertEquals(HtmlElementStore.EMBED_ELEMENT, processRemark.getTarget());
    assertNotNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(1, processRemark.getElementList().size());
    Iterator<EvidenceElement> iter = processRemark.getElementList().iterator();
    EvidenceElement ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "mock-embed-object.png"));
    assertEquals(SRC_ATTR, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------4NA-01----------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.4.6-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
    assertEquals(0, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------4NA-02----------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.4.6-4NA-02");
    // check test result
    assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
    // check test has no remark
    assertNull(processResult.getRemarkSet());
    // check number of elements in the page
    assertEquals(0, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------4NA-03----------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.4.6-4NA-03");
    // check test result
    assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
    // check test has no remark
    assertNull(processResult.getRemarkSet());
    // check number of elements in the page
    assertEquals(0, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------4NA-04----------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.4.6-4NA-04");
    // check test result
    assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
    // check test has no remark
    assertNull(processResult.getRemarkSet());
    // check number of elements in the page
    assertEquals(0, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------4NA-05----------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.4.6-4NA-05");
    // check test result
    assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
    // check test has no remark
    assertNull(processResult.getRemarkSet());
    // check number of elements in the page
    assertEquals(0, processResult.getElementCounter());
}
Also used : EvidenceElement(org.asqatasun.entity.audit.EvidenceElement) ProcessResult(org.asqatasun.entity.audit.ProcessResult) SourceCodeRemark(org.asqatasun.entity.audit.SourceCodeRemark)

Example 84 with SourceCodeRemark

use of org.asqatasun.entity.audit.SourceCodeRemark in project Asqatasun by Asqatasun.

the class Aw22Rule01013Test method setProcess.

@Override
protected void setProcess() {
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-01------------------------------
    // ----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("AW22.Test.1.1.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
    assertEquals(1, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-02------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.1.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
    assertEquals(1, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-01------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.1.3-2Failed-01");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    SourceCodeRemark processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.ALT_MISSING_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals(HtmlElementStore.INPUT_ELEMENT, processRemark.getTarget());
    assertNotNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(1, processRemark.getElementList().size());
    EvidenceElement ee = processRemark.getElementList().iterator().next();
    assertEquals(ABSENT_ATTRIBUTE_VALUE, ee.getValue());
    assertEquals(SRC_ATTR, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-02------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.1.3-2Failed-02");
    // 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());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.ALT_MISSING_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals(HtmlElementStore.INPUT_ELEMENT, processRemark.getTarget());
    assertNotNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(1, processRemark.getElementList().size());
    ee = processRemark.getElementList().iterator().next();
    assertTrue(StringUtils.contains(ee.getValue(), "mock-input-src.jpg"));
    assertEquals(SRC_ATTR, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------4NA-01------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.1.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
    assertEquals(0, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------4NA-02------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.1.1.3-4NA-02");
    // check test result
    assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
    // check test has no remark
    assertNull(processResult.getRemarkSet());
    // check number of elements in the page
    assertEquals(0, processResult.getElementCounter());
}
Also used : LinkedHashSet(java.util.LinkedHashSet) EvidenceElement(org.asqatasun.entity.audit.EvidenceElement) ProcessResult(org.asqatasun.entity.audit.ProcessResult) SourceCodeRemark(org.asqatasun.entity.audit.SourceCodeRemark)

Example 85 with SourceCodeRemark

use of org.asqatasun.entity.audit.SourceCodeRemark in project Asqatasun by Asqatasun.

the class Aw22Rule10041Test method setProcess.

@Override
protected void setProcess() {
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-01------------------------------
    // ----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("AW22.Test.10.4.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("AW22.Test.10.4.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(1, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-03------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-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
    assertEquals(2, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-04------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-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
    assertEquals(2, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-05------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-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
    assertEquals(2, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-06------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-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
    assertEquals(2, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-07------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-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
    assertEquals(2, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-08------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-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
    assertEquals(1, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-09------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-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
    assertEquals(1, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------1Passed-10------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-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
    assertEquals(1, processResult.getElementCounter());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-01_1----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-01_1");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    SourceCodeRemark processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    Iterator<EvidenceElement> iter = processRemark.getElementList().iterator();
    EvidenceElement ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-01_1.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-01_2----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-01_2");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-01_2_1.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-01_3----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-01_3");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-01_3.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-01_4----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-01_4");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-01_5----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-01_5");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-02_1----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-02_1");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pc", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-02_2----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-02_2");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pc", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-02_3----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-02_3");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pc", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-02_4----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-02_4");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pc", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-02_5----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-02_5");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pc", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-03_1----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-03_1");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("mm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-03_2----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-03_2");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("mm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-03_3----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-03_3");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("mm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-03_4----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-03_4");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("mm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-03_5----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-03_5");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("mm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-04_1----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-04_1");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("cm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-04_2----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-04_2");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("cm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-04_3----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-04_3");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("cm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-04_4----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-04_4");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("cm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-04_5----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-04_5");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("cm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-05_1----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-05_1");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("in", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-05_2----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-05_2");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("in", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-05_3----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-05_3");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("in", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-05_4----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-05_4");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("in", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-05_5----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-05_5");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("in", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "locale"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-06_1----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-06_1");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-06_1.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-06_2----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-06_2");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-06_2.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-06_3----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-06_3");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-06_3.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-06_4----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-06_4");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-06_4.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-06_5----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-06_5");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-06_5.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-06_6----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-06_6");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-06_6.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-06_7----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-06_7");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-06_7.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-06_8----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-06_8");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(4, processResult.getRemarkSet().size());
    Iterator<SourceCodeRemark> pIter = ((LinkedHashSet) processResult.getRemarkSet()).iterator();
    processRemark = pIter.next();
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("in", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-06_8.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    processRemark = pIter.next();
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("mm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-06_8.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    processRemark = pIter.next();
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("cm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-06_8.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    processRemark = pIter.next();
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("h1", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "AW22.Test.10.4.1-2Failed-06_8.css"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-07_1----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-07_1");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("in", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("div", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "inline"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-07_2----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-07_2");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pt", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("div", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "inline"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-07_3----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-07_3");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("mm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("div", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "inline"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-07_4----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-07_4");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("cm", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("div", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "inline"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------2Failed-07_5----------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-2Failed-07_5");
    // check number of elements in the page
    assertEquals(1, processResult.getElementCounter());
    // check test result
    assertEquals(TestSolution.FAILED, processResult.getValue());
    // check number of remarks and their value
    assertEquals(1, processResult.getRemarkSet().size());
    processRemark = ((SourceCodeRemark) ((LinkedHashSet) processResult.getRemarkSet()).iterator().next());
    assertEquals(RemarkMessageStore.BAD_UNIT_TYPE_MSG, processRemark.getMessageCode());
    assertEquals(TestSolution.FAILED, processRemark.getIssue());
    assertEquals("pc", processRemark.getTarget());
    assertNull(processRemark.getSnippet());
    // check number of evidence elements and their value
    assertEquals(2, processRemark.getElementList().size());
    iter = processRemark.getElementList().iterator();
    ee = iter.next();
    assertEquals("div", ee.getValue());
    assertEquals(EvidenceStore.CSS_SELECTOR_EE, ee.getEvidence().getCode());
    ee = iter.next();
    assertTrue(StringUtils.contains(ee.getValue(), "inline"));
    assertEquals(EvidenceStore.CSS_FILENAME_EE, ee.getEvidence().getCode());
    // ----------------------------------------------------------------------
    // ------------------------------4NA-1-----------------------------------
    // ----------------------------------------------------------------------
    processResult = processPageTest("AW22.Test.10.4.1-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
    assertEquals(0, processResult.getElementCounter());
}
Also used : LinkedHashSet(java.util.LinkedHashSet) EvidenceElement(org.asqatasun.entity.audit.EvidenceElement) ProcessResult(org.asqatasun.entity.audit.ProcessResult) SourceCodeRemark(org.asqatasun.entity.audit.SourceCodeRemark)

Aggregations

SourceCodeRemark (org.asqatasun.entity.audit.SourceCodeRemark)148 ProcessResult (org.asqatasun.entity.audit.ProcessResult)143 LinkedHashSet (java.util.LinkedHashSet)73 EvidenceElement (org.asqatasun.entity.audit.EvidenceElement)53 ProcessRemark (org.asqatasun.entity.audit.ProcessRemark)31