use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule060402Test method setProcess.
@Override
protected void setProcess() {
ProcessResult processResult = processPageTest("Rgaa32016.Test.06.04.02-1Passed-01");
assertEquals(TestSolution.PASSED, processResult.getValue());
processResult = processPageTest("Rgaa32016.Test.06.04.02-1Passed-02");
assertEquals(TestSolution.PASSED, processResult.getValue());
processResult = processPageTest("Rgaa32016.Test.06.04.02-1Passed-03");
assertEquals(TestSolution.PASSED, processResult.getValue());
processResult = processPageTest("Rgaa32016.Test.06.04.02-1Passed-04");
assertEquals(TestSolution.PASSED, processResult.getValue());
processResult = processPageTest("Rgaa32016.Test.06.04.02-2Failed-01");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.02-2Failed-02");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.02-2Failed-03");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.02-2Failed-04");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.02-2Failed-05");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(4, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[2]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[3]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.02-2Failed-06");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(4, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[2]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[3]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.02-2Failed-07");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(4, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[2]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[3]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.02-2Failed-08");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(4, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[2]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[3]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.02-3NMI-01");
assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.02-3NMI-02");
assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.02-3NMI-03");
assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.02-4NA-01");
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
assertNull(processResult.getRemarkSet());
processResult = processPageTest("Rgaa32016.Test.06.04.02-4NA-02");
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
assertNull(processResult.getRemarkSet());
processResult = processPageTest("Rgaa32016.Test.06.04.02-4NA-03");
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
assertNull(processResult.getRemarkSet());
processResult = processPageTest("Rgaa32016.Test.06.04.02-4NA-04");
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
assertNull(processResult.getRemarkSet());
processResult = processPageTest("Rgaa32016.Test.06.04.02-4NA-05");
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
assertNull(processResult.getRemarkSet());
processResult = processPageTest("Rgaa32016.Test.06.04.02-4NA-06");
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
assertNull(processResult.getRemarkSet());
// 06.04.01 testcases : All is Not Applicable
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-1Passed-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-1Passed-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-2Failed-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-2Failed-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-2Failed-03").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-3NMI-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-3NMI-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-3NMI-03").getValue());
// 06.04.03 testcases : All is Not Applicable
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-1Passed-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-1Passed-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-2Failed-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-2Failed-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-2Failed-03").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-3NMI-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-3NMI-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-3NMI-03").getValue());
// 06.04.04 testcases : All is Not Applicable
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-1Passed-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-1Passed-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-1Passed-03").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-1Passed-04").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-2Failed-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-2Failed-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-2Failed-03").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-2Failed-04").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-2Failed-05").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-2Failed-06").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-2Failed-07").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-2Failed-08").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-3NMI-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-3NMI-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.04-3NMI-03").getValue());
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule060403Test method setProcess.
@Override
protected void setProcess() {
ProcessResult processResult = processPageTest("Rgaa32016.Test.06.04.04-1Passed-01");
assertEquals(TestSolution.PASSED, processResult.getValue());
processResult = processPageTest("Rgaa32016.Test.06.04.04-1Passed-02");
assertEquals(TestSolution.PASSED, processResult.getValue());
processResult = processPageTest("Rgaa32016.Test.06.04.04-1Passed-03");
assertEquals(TestSolution.PASSED, processResult.getValue());
processResult = processPageTest("Rgaa32016.Test.06.04.04-1Passed-04");
assertEquals(TestSolution.PASSED, processResult.getValue());
processResult = processPageTest("Rgaa32016.Test.06.04.04-2Failed-01");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.04-2Failed-02");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.04-2Failed-03");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.04-2Failed-04");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.04-2Failed-05");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(4, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[2]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[3]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.04-2Failed-06");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(4, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[2]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[3]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.04-2Failed-07");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(4, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[2]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[3]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.04-2Failed-08");
assertEquals(TestSolution.FAILED, processResult.getValue());
assertEquals(4, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[2]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[3]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.04-3NMI-01");
assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.04-3NMI-02");
assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.04-3NMI-03");
assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
assertEquals(2, processResult.getRemarkSet().size());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
assertEquals(RemarkMessageStore.SUSPECTED_IDENTICAL_LINK_WITH_DIFFERENT_TARGET, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
processResult = processPageTest("Rgaa32016.Test.06.04.04-4NA-01");
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
assertNull(processResult.getRemarkSet());
processResult = processPageTest("Rgaa32016.Test.06.04.04-4NA-02");
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
assertNull(processResult.getRemarkSet());
processResult = processPageTest("Rgaa32016.Test.06.04.04-4NA-03");
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
assertNull(processResult.getRemarkSet());
processResult = processPageTest("Rgaa32016.Test.06.04.04-4NA-04");
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
assertNull(processResult.getRemarkSet());
processResult = processPageTest("Rgaa32016.Test.06.04.04-4NA-05");
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
assertNull(processResult.getRemarkSet());
processResult = processPageTest("Rgaa32016.Test.06.04.04-4NA-06");
assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
assertNull(processResult.getRemarkSet());
// 06.04.01 testcases : All is Not Applicable
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-1Passed-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-1Passed-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-2Failed-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-2Failed-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-2Failed-03").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-3NMI-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-3NMI-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-3NMI-03").getValue());
// 06.04.02 testcases : All is Not Applicable
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-1Passed-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-1Passed-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-1Passed-03").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-1Passed-04").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-2Failed-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-2Failed-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-2Failed-03").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-2Failed-04").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-2Failed-05").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-2Failed-06").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-2Failed-07").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-2Failed-08").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-3NMI-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-3NMI-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.02-3NMI-03").getValue());
// 06.04.03 testcases : All is Not Applicable
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-1Passed-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-1Passed-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-2Failed-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-2Failed-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-2Failed-03").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-3NMI-01").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-3NMI-02").getValue());
assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.03-3NMI-03").getValue());
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule050301Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
// checkResultIsPassed(processPageTest("Rgaa32016.Test.5.3.1-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
// ProcessResult processResult = processPageTest("Rgaa32016.Test.5.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.5.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.5.3.1-4NA-01"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule050401Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.5.4.1-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------1Passed-02------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.5.4.1-1Passed-02"), 1);
//----------------------------------------------------------------------
//------------------------------1Passed-03------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.5.4.1-1Passed-03"), 2);
//----------------------------------------------------------------------
//------------------------------1Passed-04------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.5.4.1-1Passed-04"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.5.4.1-2Failed-01");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.CAPTION_MISSING_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------2Failed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.5.4.1-2Failed-02");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.CAPTION_MISSING_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------2Failed-03------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.5.4.1-2Failed-03");
checkResultIsFailed(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.CAPTION_MISSING_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.CAPTION_MISSING_MSG, HtmlElementStore.TABLE_ELEMENT, 2);
//----------------------------------------------------------------------
//------------------------------2Failed-04------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.5.4.1-2Failed-04");
checkResultIsFailed(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.CAPTION_MISSING_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_WITH_CAPTION_MSG, HtmlElementStore.TABLE_ELEMENT, 2);
//----------------------------------------------------------------------
//------------------------------2Failed-05------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.5.4.1-2Failed-05");
checkResultIsFailed(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.CAPTION_MISSING_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_WITHOUT_CAPTION_MSG, HtmlElementStore.TABLE_ELEMENT, 2);
//----------------------------------------------------------------------
//------------------------------2Failed-06------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.5.4.1-2Failed-06");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.CAPTION_MISSING_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//-------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.5.4.1-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_WITHOUT_CAPTION_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-02---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.5.4.1-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_WITH_CAPTION_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-03---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.5.4.1-3NMI-03");
checkResultIsPreQualified(processResult, 2, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_WITH_CAPTION_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-04--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.5.4.1-3NMI-04");
checkResultIsPreQualified(processResult, 2, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_WITHOUT_CAPTION_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------4NA-01----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.5.4.1-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.5.4.1-4NA-02"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule050602Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01--------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.05.06.02-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_AND_HEADERS_USAGE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-02--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.06.02-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_USAGE_OF_HEADERS_FOR_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
//----------------------------------------------------------------------
//------------------------------3NMI-03--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.05.06.02-3NMI-03");
checkResultIsPreQualified(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_USAGE_OF_HEADERS_FOR_DATA_TABLE_MSG, HtmlElementStore.TABLE_ELEMENT, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_NATURE_OF_TABLE_AND_HEADERS_USAGE_MSG, HtmlElementStore.TABLE_ELEMENT, 2);
//----------------------------------------------------------------------
//------------------------------4NA-01----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.05.06.02-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.05.06.02-4NA-02"));
}
Aggregations