use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa30Rule010804Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa30.Test.01.08.04-3NMI-01");
checkResultIsPreQualified(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TEXT_STYLED_PRESENCE_OF_INFORMATIVE_IMG_MSG, HtmlElementStore.OBJECT_ELEMENT, 1, new ImmutablePair(DATA_ATTR, "mock_image.gif"));
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_IMAGE_AND_TEXT_STYLED_PRESENCE_MSG, HtmlElementStore.OBJECT_ELEMENT, 2, new ImmutablePair(DATA_ATTR, "mock_image2.gif"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.08.04-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.08.04-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.08.04-4NA-03"));
//----------------------------------------------------------------------
//------------------------------4NA-04----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.08.04-4NA-04"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa30Rule010902Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa30.Test.1.9.2-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.MANUAL_CHECK_ON_ELEMENTS_MSG, HtmlElementStore.AREA_ELEMENT, 1, new ImmutablePair(HREF_ATTR, ABSENT_ATTRIBUTE_VALUE));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.9.2-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.9.2-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.9.2-4NA-03"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa30Rule010903Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa30.Test.1.9.3-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.MANUAL_CHECK_ON_ELEMENTS_MSG, HtmlElementStore.INPUT_ELEMENT, 1, new ImmutablePair(SRC_ATTR, ABSENT_ATTRIBUTE_VALUE));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.9.3-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.9.3-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.9.3-4NA-03"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa30Rule010904Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa30.Test.01.09.04-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.MANUAL_CHECK_ON_ELEMENTS_MSG, HtmlElementStore.OBJECT_ELEMENT, 1, new ImmutablePair(DATA_ATTR, "mock_image.gif"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.09.04-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.09.04-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.09.04-4NA-03"));
//----------------------------------------------------------------------
//------------------------------4NA-04----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.09.04-4NA-04"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa30Rule010604Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//-------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa30.Test.01.06.04-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_IMAGE_AND_DETAILED_DESC_AVAILABILITY_MSG, HtmlElementStore.INPUT_ELEMENT, 1, new ImmutablePair(ALT_ATTR, ABSENT_ATTRIBUTE_VALUE), new ImmutablePair(SRC_ATTR, ABSENT_ATTRIBUTE_VALUE));
//----------------------------------------------------------------------
//-------------------------------3NMI-02--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.01.06.04-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_DETAILED_DESC_DEFINITION_OF_INFORMATIVE_IMG_MSG, HtmlElementStore.INPUT_ELEMENT, 1, new ImmutablePair(ALT_ATTR, ABSENT_ATTRIBUTE_VALUE), new ImmutablePair(SRC_ATTR, ABSENT_ATTRIBUTE_VALUE));
//----------------------------------------------------------------------
//-------------------------------3NMI-03--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.01.06.04-3NMI-03");
checkResultIsPreQualified(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_DETAILED_DESC_DEFINITION_OF_INFORMATIVE_IMG_MSG, HtmlElementStore.INPUT_ELEMENT, 1, new ImmutablePair(ALT_ATTR, ABSENT_ATTRIBUTE_VALUE), new ImmutablePair(SRC_ATTR, ABSENT_ATTRIBUTE_VALUE));
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_IMAGE_AND_DETAILED_DESC_AVAILABILITY_MSG, HtmlElementStore.INPUT_ELEMENT, 2, new ImmutablePair(ALT_ATTR, ABSENT_ATTRIBUTE_VALUE), new ImmutablePair(SRC_ATTR, ABSENT_ATTRIBUTE_VALUE));
//----------------------------------------------------------------------
//------------------------------4NA-01---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.06.04-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.06.04-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.06.04-4NA-03"));
//----------------------------------------------------------------------
//------------------------------4NA-04----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.06.04-4NA-04"));
}
Aggregations