use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa32016Rule020201Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.2.2.1-2Failed-01");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.NOT_PERTINENT_TITLE_OF_IFRAME_MSG, HtmlElementStore.IFRAME_ELEMENT, 1, new ImmutablePair(TITLE_ATTR, ""));
//----------------------------------------------------------------------
//------------------------------2Failed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.2.2.1-2Failed-02");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.NOT_PERTINENT_TITLE_OF_IFRAME_MSG, HtmlElementStore.IFRAME_ELEMENT, 1, new ImmutablePair(TITLE_ATTR, ""));
//----------------------------------------------------------------------
//------------------------------2Failed-03------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.2.2.1-2Failed-03");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.NOT_PERTINENT_TITLE_OF_IFRAME_MSG, HtmlElementStore.IFRAME_ELEMENT, 1, new ImmutablePair(TITLE_ATTR, "!§:;.,?%*\\~/@()[]^_°=+-"));
//----------------------------------------------------------------------
//------------------------------2Failed-04------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.2.2.1-2Failed-04");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.NOT_PERTINENT_TITLE_OF_IFRAME_MSG, HtmlElementStore.IFRAME_ELEMENT, 1, new ImmutablePair(TITLE_ATTR, "mock-iframe.html"));
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.2.2.1-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TITLE_OF_IFRAME_PERTINENCE_MSG, HtmlElementStore.IFRAME_ELEMENT, 1, new ImmutablePair(TITLE_ATTR, "title of iframe"));
//----------------------------------------------------------------------
//------------------------------4NA-01----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.2.2.1-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.2.2.1-4NA-02"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa32016Rule010901Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.1.9.1-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.MANUAL_CHECK_ON_ELEMENTS_MSG, HtmlElementStore.IMG_ELEMENT, 1, new ImmutablePair(SRC_ATTR, "mock_image.jpg"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.1.9.1-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.1.9.1-4NA-02"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa32016Rule010802Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.01.08.03-3NMI-01");
checkResultIsPreQualified(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TEXT_STYLED_PRESENCE_OF_INFORMATIVE_IMG_MSG, HtmlElementStore.INPUT_ELEMENT, 1, new ImmutablePair(SRC_ATTR, ABSENT_ATTRIBUTE_VALUE));
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_IMAGE_AND_TEXT_STYLED_PRESENCE_MSG, HtmlElementStore.INPUT_ELEMENT, 2, new ImmutablePair(SRC_ATTR, ABSENT_ATTRIBUTE_VALUE));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.01.08.03-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.01.08.03-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.01.08.03-4NA-03"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa32016Rule080401Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//---------------------------1Passed-01---------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.08.04.01-1Passed-01"), 1);
//----------------------------------------------------------------------
//---------------------------1Passed-02---------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.08.04.01-1Passed-02"), 1);
//----------------------------------------------------------------------
//---------------------------1Passed-03---------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.08.04.01-1Passed-03"), 1);
//----------------------------------------------------------------------
//---------------------------2Failed-01---------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.08.04.01-2Failed-01");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.WRONG_LANGUAGE_DECLARATION_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "aq"));
//----------------------------------------------------------------------
//---------------------------2Failed-02---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-2Failed-02");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.WRONG_LANGUAGE_DECLARATION_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "aq"));
//----------------------------------------------------------------------
//---------------------------2Failed-03---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-2Failed-03");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.MALFORMED_LANGUAGE_DECLARATION_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "en-U"));
//----------------------------------------------------------------------
//---------------------------2Failed-04---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-2Failed-04");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.MALFORMED_LANGUAGE_DECLARATION_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "english"));
//----------------------------------------------------------------------
//---------------------------2Failed-05---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-2Failed-05");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.IRRELEVANT_LANG_DECL_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "ro"), new ImmutablePair(EvidenceStore.DETECTED_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.EXTRACTED_TEXT_EE, "de"));
//----------------------------------------------------------------------
//---------------------------2Failed-06---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-2Failed-06");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.MALFORMED_LANGUAGE_DECLARATION_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "en;US"));
//----------------------------------------------------------------------
//---------------------------3NMI-01------------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.SUSPECTED_IRRELEVANT_LANG_DECL_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "de"), new ImmutablePair(EvidenceStore.DETECTED_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.EXTRACTED_TEXT_EE, "(testcase warning one)"));
//----------------------------------------------------------------------
//---------------------------3NMI-02------------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.SUSPECTED_RELEVANT_LANG_DECL_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.DETECTED_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.EXTRACTED_TEXT_EE, "en"));
//----------------------------------------------------------------------
//---------------------------4NA-01-------------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.08.04.01-4NA-01"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa32016Rule080701Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//---------------------------1Passed-01---------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.08.07.01-1Passed-01"), 6);
//----------------------------------------------------------------------
//---------------------------1Passed-02---------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.08.07.01-1Passed-02"), 6);
//----------------------------------------------------------------------
//---------------------------1Passed-03---------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.08.07.01-1Passed-03"), 6);
//----------------------------------------------------------------------
//---------------------------1Passed-04---------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.08.07.01-1Passed-04"), 6);
//----------------------------------------------------------------------
//---------------------------1Passed-05---------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.08.07.01-1Passed-05"), 6);
//----------------------------------------------------------------------
//---------------------------2Failed-01---------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.08.07.01-2Failed-01");
checkResultIsFailed(processResult, 10, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.LANGUAGE_CHANGE_MISSING_MSG, HtmlElementStore.P_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.DETECTED_LANGUAGE_EE, "fr"), new ImmutablePair(EvidenceStore.EXTRACTED_TEXT_EE, "L'accessibilité du web est la problématique de l'accès aux"));
//----------------------------------------------------------------------
//---------------------------2Failed-02---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.07.01-2Failed-02");
checkResultIsFailed(processResult, 10, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.LANGUAGE_CHANGE_MISSING_MSG, HtmlElementStore.P_ELEMENT, 1, new ImmutablePair(EvidenceStore.DEFAULT_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.CURRENT_LANGUAGE_EE, "fr"), new ImmutablePair(EvidenceStore.DETECTED_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.EXTRACTED_TEXT_EE, "Web accessibility refers to the inclusive practice of making"));
//----------------------------------------------------------------------
//---------------------------2Failed-03---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.07.01-2Failed-03");
checkResultIsFailed(processResult, 10, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.LANGUAGE_CHANGE_MISSING_MSG, HtmlElementStore.SPAN_ELEMENT, 1, new ImmutablePair(EvidenceStore.DEFAULT_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.CURRENT_LANGUAGE_EE, "fr"), new ImmutablePair(EvidenceStore.DETECTED_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.EXTRACTED_TEXT_EE, "Web accessibility refers to the inclusive practice of making"));
//----------------------------------------------------------------------
//---------------------------2Failed-04---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.07.01-2Failed-04");
checkResultIsFailed(processResult, 10, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.LANGUAGE_CHANGE_MISSING_MSG, HtmlElementStore.P_ELEMENT, 1, new ImmutablePair(EvidenceStore.DEFAULT_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.CURRENT_LANGUAGE_EE, "dummy"), new ImmutablePair(EvidenceStore.DETECTED_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.EXTRACTED_TEXT_EE, "Web accessibility refers to the inclusive practice of making"));
//----------------------------------------------------------------------
//---------------------------2Failed-05---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.07.01-2Failed-05");
checkResultIsFailed(processResult, 10, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.LANGUAGE_CHANGE_MISSING_MSG, HtmlElementStore.P_ELEMENT, 1, new ImmutablePair(EvidenceStore.DEFAULT_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.CURRENT_LANGUAGE_EE, "dummy"), new ImmutablePair(EvidenceStore.DETECTED_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.EXTRACTED_TEXT_EE, "Web accessibility refers to the inclusive practice of making"));
//----------------------------------------------------------------------
//---------------------------2Failed-06---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.07.01-2Failed-06");
checkResultIsFailed(processResult, 10, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.LANGUAGE_CHANGE_MISSING_MSG, HtmlElementStore.P_ELEMENT, 1, new ImmutablePair(EvidenceStore.DEFAULT_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.CURRENT_LANGUAGE_EE, "dummy"), new ImmutablePair(EvidenceStore.DETECTED_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.EXTRACTED_TEXT_EE, "Web accessibility refers to the inclusive practice of making"));
//----------------------------------------------------------------------
//---------------------------2Failed-07---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.07.01-2Failed-07");
checkResultIsFailed(processResult, 10, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.LANGUAGE_CHANGE_MISSING_MSG, HtmlElementStore.SPAN_ELEMENT, 1, new ImmutablePair(EvidenceStore.DEFAULT_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.CURRENT_LANGUAGE_EE, "dummy"), new ImmutablePair(EvidenceStore.DETECTED_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.EXTRACTED_TEXT_EE, "Web accessibility refers to the inclusive practice of making"));
//----------------------------------------------------------------------
//---------------------------3NMI-01------------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.07.01-3NMI-01");
checkResultIsPreQualified(processResult, 10, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_SHORT_TEST_MSG, "", 1);
//----------------------------------------------------------------------
//---------------------------3NMI-02------------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.07.01-3NMI-02");
checkResultIsPreQualified(processResult, 9, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_SHORT_TEST_MSG, "", 1);
//----------------------------------------------------------------------
//---------------------------3NMI-03------------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.07.01-3NMI-03");
checkResultIsPreQualified(processResult, 9, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_SHORT_TEST_MSG, "", 1);
//----------------------------------------------------------------------
//---------------------------3NMI-04------------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.07.01-3NMI-04");
checkResultIsPreQualified(processResult, 9, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_SHORT_TEST_MSG, "", 1);
//----------------------------------------------------------------------
//---------------------------4NA-01-------------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.08.07.01-4NA-01"));
//----------------------------------------------------------------------
//---------------------------4NA-02-------------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.08.07.01-4NA-02"));
//----------------------------------------------------------------------
//---------------------------4NA-03-------------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.08.07.01-4NA-03"), 7);
//----------------------------------------------------------------------
//---------------------------4NA-04-------------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.08.07.01-4NA-04"), 7);
}
Aggregations