use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa30Rule110701Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa30.Test.11.07.01-2Failed-01");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.NOT_PERTINENT_LEGEND_MSG, HtmlElementStore.LEGEND_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, ""));
//----------------------------------------------------------------------
//------------------------------2Failed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.11.07.01-2Failed-02");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.NOT_PERTINENT_LEGEND_MSG, HtmlElementStore.LEGEND_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "%!:/;.,~"));
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.11.07.01-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_LEGEND_PERTINENCE_MSG, HtmlElementStore.LEGEND_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "Fieldset legend"));
//----------------------------------------------------------------------
//------------------------------4NA-01----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.11.07.01-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.11.07.01-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.11.07.01-4NA-03"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa30Rule110803Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa30.Test.11.08.03-2Failed-01");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.NOT_PERTINENT_OPTGROUP_LABEL_MSG, HtmlElementStore.OPTGROUP_ELEMENT, 1, new ImmutablePair(AttributeStore.LABEL_ATTR, ""));
//----------------------------------------------------------------------
//------------------------------2Failed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.11.08.03-2Failed-02");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.NOT_PERTINENT_OPTGROUP_LABEL_MSG, HtmlElementStore.OPTGROUP_ELEMENT, 1, new ImmutablePair(AttributeStore.LABEL_ATTR, "/--*:;!:;*"));
//----------------------------------------------------------------------
//------------------------------2Failed-03------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.11.08.03-2Failed-03");
checkResultIsFailed(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.NOT_PERTINENT_OPTGROUP_LABEL_MSG, HtmlElementStore.OPTGROUP_ELEMENT, 1, new ImmutablePair(AttributeStore.LABEL_ATTR, ""));
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_OPTGROUP_LABEL_PERTINENCE_MSG, HtmlElementStore.OPTGROUP_ELEMENT, 2, new ImmutablePair(AttributeStore.LABEL_ATTR, "OptGroup2"));
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa30.Test.11.08.03-3NMI-01");
checkResultIsPreQualified(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_OPTGROUP_LABEL_PERTINENCE_MSG, HtmlElementStore.OPTGROUP_ELEMENT, 1, new ImmutablePair(AttributeStore.LABEL_ATTR, "OptGroup1"));
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_OPTGROUP_LABEL_PERTINENCE_MSG, HtmlElementStore.OPTGROUP_ELEMENT, 2, new ImmutablePair(AttributeStore.LABEL_ATTR, "OptGroup2"));
//----------------------------------------------------------------------
//------------------------------4NA-01----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.11.08.03-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.11.08.03-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa30.Test.11.08.03-4NA-03"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa32016Rule010703Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//-------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.01.07.02-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_DESC_PERTINENCE_OF_INFORMATIVE_IMG_MSG, HtmlElementStore.OBJECT_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "Some text can be added here."), new ImmutablePair(DATA_ATTR, "mock_image.gif"));
//----------------------------------------------------------------------
//-------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.01.07.02-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_IMAGE_AND_DESC_PERTINENCE_MSG, HtmlElementStore.OBJECT_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "Some text can be added here."), new ImmutablePair(DATA_ATTR, "mock_image.gif"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.01.07.02-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.01.07.02-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.01.07.02-4NA-03"));
//----------------------------------------------------------------------
//------------------------------4NA-04---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.01.07.02-4NA-04"));
//----------------------------------------------------------------------
//------------------------------4NA-05---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.01.07.02-4NA-05"));
//----------------------------------------------------------------------
//------------------------------4NA-05---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.01.07.02-4NA-06"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa32016Rule010705Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//-------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.01.07.04-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_DESC_PERTINENCE_OF_INFORMATIVE_IMG_MSG, HtmlElementStore.SVG_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "mock svg."));
//----------------------------------------------------------------------
//-------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.01.07.04-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_IMAGE_AND_DESC_PERTINENCE_MSG, HtmlElementStore.SVG_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "mock svg."));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.01.07.04-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.01.07.04-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.01.07.04-4NA-03"));
//----------------------------------------------------------------------
//------------------------------4NA-04---------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.01.07.04-4NA-04"));
}
use of org.apache.commons.lang3.tuple.ImmutablePair in project Asqatasun by Asqatasun.
the class Rgaa32016Rule010412Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.1.4.12-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, CHECK_AT_RESTITUTION_OF_ALTERNATIVE_OF_CAPTCHA_MSG, CANVAS_ELEMENT, 1, new ImmutablePair(TEXT_ELEMENT2, "Un texte"));
//----------------------------------------------------------------------
//------------------------------4NA-01----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.1.4.12-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.1.4.12-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.1.4.12-4NA-03"));
}
Aggregations