use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa30Rule010607Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//-------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa30.Test.1.6.7-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_DETAILED_DESC_DEFINITION_OF_INFORMATIVE_IMG_MSG, HtmlElementStore.CANVAS_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "mock canvas."));
//----------------------------------------------------------------------
//-------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.1.6.7-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_IMAGE_AND_DETAILED_DESC_AVAILABILITY_MSG, HtmlElementStore.CANVAS_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "mock canvas"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.6.7-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.6.7-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.6.7-4NA-03"));
//----------------------------------------------------------------------
//------------------------------4NA-04---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.6.7-4NA-04"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa30Rule010608Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//-------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa30.Test.1.6.8-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_AT_RESTITUTION_OF_DESC_OF_INFORMATIVE_IMG_MSG, HtmlElementStore.CANVAS_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "mock canvas"));
//----------------------------------------------------------------------
//-------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.1.6.8-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_IMAGE_AND_AT_RESTITUTION_OF_PERTINENCE_MSG, HtmlElementStore.CANVAS_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "mock canvas"));
//----------------------------------------------------------------------
//------------------------------4NA-01----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.6.8-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.6.8-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.6.8-4NA-03"));
//----------------------------------------------------------------------
//------------------------------4NA-04----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.6.8-4NA-04"));
//----------------------------------------------------------------------
//------------------------------4NA-05----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.1.6.8-4NA-05"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa30Rule010703Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//-------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa30.Test.01.07.03-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_DESC_PERTINENCE_OF_INFORMATIVE_IMG_MSG, HtmlElementStore.EMBED_ELEMENT, 1, new ImmutablePair(SRC_ATTR, "mock_embed_object"));
//----------------------------------------------------------------------
//-------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.01.07.03-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_IMAGE_AND_DESC_PERTINENCE_MSG, HtmlElementStore.EMBED_ELEMENT, 1, new ImmutablePair(SRC_ATTR, "mock_embed_object"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.07.03-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.07.03-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.07.03-4NA-03"));
//----------------------------------------------------------------------
//------------------------------4NA-04---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.01.07.03-4NA-04"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa30Rule030301Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa30.Test.3.3.1-1Passed-01"), 7);
//----------------------------------------------------------------------
//------------------------------1Passed-02------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa30.Test.3.3.1-1Passed-02"), 7);
//----------------------------------------------------------------------
//------------------------------1Passed-03------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa30.Test.3.3.1-1Passed-03"), 7);
//----------------------------------------------------------------------
//------------------------------1Passed-04------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa30.Test.3.3.1-1Passed-04"), 5);
//----------------------------------------------------------------------
//------------------------------1Passed-05------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa30.Test.3.3.1-1Passed-05"), 7);
//----------------------------------------------------------------------
//------------------------------1Passed-06------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa30.Test.3.3.1-1Passed-06"), 7);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa30.Test.3.3.1-2Failed-01");
checkResultIsFailed(processResult, 7, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.BAD_CONTRAST_MSG, HtmlElementStore.SPAN_ELEMENT, 1, new ImmutablePair(FG_COLOR_EE, "rgb(255; 0; 0)"), new ImmutablePair(BG_COLOR_EE, "rgb(255; 255; 255)"), new ImmutablePair(CONTRAST_EE, "4.00"));
//----------------------------------------------------------------------
//------------------------------2Failed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.3.3.1-2Failed-02");
checkResultIsFailed(processResult, 7, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.BAD_CONTRAST_MSG, HtmlElementStore.SPAN_ELEMENT, 1, new ImmutablePair(FG_COLOR_EE, "rgb(255; 165; 0)"), new ImmutablePair(BG_COLOR_EE, "rgb(255; 255; 255)"), new ImmutablePair(CONTRAST_EE, "1.97"));
//----------------------------------------------------------------------
//------------------------------2Failed-03------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.3.3.1-2Failed-03");
checkResultIsFailed(processResult, 7, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.BAD_CONTRAST_MSG, HtmlElementStore.SPAN_ELEMENT, 1, new ImmutablePair(FG_COLOR_EE, "rgb(255; 255; 255)"), new ImmutablePair(BG_COLOR_EE, "rgb(255; 165; 0)"), new ImmutablePair(CONTRAST_EE, "1.97"));
//----------------------------------------------------------------------
//------------------------------2Failed-04------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.3.3.1-2Failed-04");
checkResultIsFailed(processResult, 7, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.BAD_CONTRAST_MSG, HtmlElementStore.SPAN_ELEMENT, 1, new ImmutablePair(FG_COLOR_EE, "rgb(223; 240; 216)"), new ImmutablePair(BG_COLOR_EE, "rgb(98; 111; 83)"), new ImmutablePair(CONTRAST_EE, "4.49"));
//----------------------------------------------------------------------
//------------------------------2Failed-05------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.3.3.1-2Failed-05");
checkResultIsFailed(processResult, 7, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.BAD_CONTRAST_MSG, HtmlElementStore.SPAN_ELEMENT, 1, new ImmutablePair(FG_COLOR_EE, "rgb(70; 136; 71)"), new ImmutablePair(BG_COLOR_EE, "rgb(223; 240; 216)"), new ImmutablePair(CONTRAST_EE, "3.61"));
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.3.3.1-3NMI-01");
checkResultIsPreQualified(processResult, 7, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_CONTRAST_OF_IMAGE_MSG, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-02---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.3.3.1-3NMI-02");
checkResultIsPreQualified(processResult, 7, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_CONTRAST_OF_IMAGE_MSG, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-03---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.3.3.1-3NMI-03");
checkResultIsPreQualified(processResult, 7, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_CONTRAST_OF_IMAGE_MSG, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-04---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.3.3.1-3NMI-04");
checkResultIsPreQualified(processResult, 5, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_CONTRAST_OF_IMAGE_MSG, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-05---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.3.3.1-3NMI-05");
checkResultIsPreQualified(processResult, 7, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.NOT_TREATED_BACKGROUND_COLOR_MSG, EMPTY_TARGET, 1, new ImmutablePair(ELEMENT_NAME_EE, "linear-gradient(rgb(244, 244, 244) 55px, rgb(248, 248, 248) 100%)"));
//----------------------------------------------------------------------
//------------------------------3NMI-06---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.3.3.1-3NMI-06");
checkResultIsPreQualified(processResult, 7, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.NOT_TREATED_BACKGROUND_COLOR_MSG, EMPTY_TARGET, 1, new ImmutablePair(ELEMENT_NAME_EE, "my-image.jpg"));
//----------------------------------------------------------------------
//------------------------------3NMI-07---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.3.3.1-3NMI-07");
checkResultIsPreQualified(processResult, 7, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.BAD_CONTRAST_HIDDEN_ELEMENT_MSG, HtmlElementStore.SPAN_ELEMENT, 1, new ImmutablePair(FG_COLOR_EE, "rgb(70; 136; 71)"), new ImmutablePair(BG_COLOR_EE, "rgb(223; 240; 216)"), new ImmutablePair(CONTRAST_EE, "3.61"));
//----------------------------------------------------------------------
//------------------------------4NA-01----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.3.3.1-4NA-01"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa30Rule110401Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa30.Test.11.04.01-3NMI-01");
checkResultIsPreQualified(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.MANUAL_CHECK_ON_ELEMENTS_MSG, HtmlElementStore.LABEL_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "Field1"));
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.MANUAL_CHECK_ON_ELEMENTS_MSG, HtmlElementStore.LABEL_ELEMENT, 2, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "Field2"));
//----------------------------------------------------------------------
//------------------------------4NA-01----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.11.04.01-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.11.04.01-4NA-02"));
}
Aggregations