use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule050801Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.05.08.01-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.05.08.01-2Failed-01");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------2Failed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-2Failed-02");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------2Failed-03------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-2Failed-03");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------2Failed-04------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-2Failed-04");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------2Failed-05------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-2Failed-05");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------2Failed-06------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-2Failed-06");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------2Failed-07------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-2Failed-07");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------2Failed-08------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-2Failed-08");
checkResultIsFailed(processResult, 16, 15);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 2);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 3);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 4);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 5);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 6);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.PRESENTATION_TABLE_WITH_FORBIDDEN_MARKUP_MSG, HtmlElementStore.TABLE_ELEMENT, 7);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 8);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 9);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 10);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 11);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 12);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 13);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 14);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_PRESENTATION_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 15);
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_PRESENTATION_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-02---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-03---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-3NMI-03");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-04---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-3NMI-04");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-05---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-3NMI-05");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-06---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-3NMI-06");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-07---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-3NMI-07");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-08---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-3NMI-08");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TABLE_IS_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-09---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.08.01-3NMI-09");
checkResultIsPreQualified(processResult, 2, 2);
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.05.08.01-4NA-01"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule070202Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
// checkResultIsPassed(processPageTest("Rgaa32016.Test.7.2.2-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
// ProcessResult processResult = processPageTest("Rgaa32016.Test.7.2.2-2Failed-01");
// checkResultIsFailed(processResult, 1, 1);
// checkRemarkIsPresent(
// processResult,
// TestSolution.FAILED,
// "#MessageHere",
// "#CurrentElementHere",
// 1,
// new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.7.2.2-3NMI-01");
// temporary result to make the result buildable before implementation
checkResultIsNotTested(processResult);
// checkResultIsPreQualified(processResult, 2, 1);
// checkRemarkIsPresent(
// processResult,
// TestSolution.NEED_MORE_INFO,
// "#MessageHere",
// "#CurrentElementHere",
// 1,
// new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
// checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.7.2.2-4NA-01"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule070301Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
// checkResultIsPassed(processPageTest("Rgaa32016.Test.7.3.1-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
// ProcessResult processResult = processPageTest("Rgaa32016.Test.7.3.1-2Failed-01");
// checkResultIsFailed(processResult, 1, 1);
// checkRemarkIsPresent(
// processResult,
// TestSolution.FAILED,
// "#MessageHere",
// "#CurrentElementHere",
// 1,
// new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.7.3.1-3NMI-01");
// temporary result to make the result buildable before implementation
checkResultIsNotTested(processResult);
// checkResultIsPreQualified(processResult, 2, 1);
// checkRemarkIsPresent(
// processResult,
// TestSolution.NEED_MORE_INFO,
// "#MessageHere",
// "#CurrentElementHere",
// 1,
// new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
// checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.7.3.1-4NA-01"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule050702Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.05.07.02-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_AND_HEADERS_DEFINITION_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-02--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.07.02-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_AND_HEADERS_DEFINITION_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-03--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.07.02-3NMI-03");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_AND_HEADERS_DEFINITION_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-04--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.07.02-3NMI-04");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_AND_HEADERS_DEFINITION_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-05--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.07.02-3NMI-05");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_DEFINITION_OF_HEADERS_FOR_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-06--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.07.02-3NMI-06");
checkResultIsPreQualified(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_DEFINITION_OF_HEADERS_FOR_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_AND_HEADERS_DEFINITION_MSG, HtmlElementStore.TABLE_ELEMENT, 2);
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.05.07.02-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.05.07.02-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.05.07.02-4NA-03"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule050703Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.05.07.03-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_AND_HEADERS_DEFINITION_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-02--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.07.03-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_AND_HEADERS_DEFINITION_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-03--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.07.03-3NMI-03");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_AND_HEADERS_DEFINITION_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-04--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.07.03-3NMI-04");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_AND_HEADERS_DEFINITION_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-05--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.07.03-3NMI-05");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_DEFINITION_OF_HEADERS_FOR_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-06--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.07.03-3NMI-06");
checkResultIsPreQualified(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_DEFINITION_OF_HEADERS_FOR_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_AND_HEADERS_DEFINITION_MSG, HtmlElementStore.TABLE_ELEMENT, 2);
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.05.07.03-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.05.07.03-4NA-02"));
//----------------------------------------------------------------------
//------------------------------4NA-03------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.05.07.03-4NA-03"));
}
Aggregations