Search in sources :

Example 51 with ProcessResult

use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.

the class Rgaa32016Rule060103Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //---------------------------2Failed-01---------------------------------
    //----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("Rgaa32016.Test.06.01.04-2Failed-01");
    checkResultIsFailed(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.UNEXPLICIT_LINK_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "cliquez ici"), new ImmutablePair(AttributeStore.TITLE_ATTR, "cliquez ici"));
    //----------------------------------------------------------------------
    //---------------------------2Failed-02---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-2Failed-02");
    checkResultIsFailed(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.UNEXPLICIT_LINK_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "cliquez ici"), new ImmutablePair(AttributeStore.TITLE_ATTR, "attribute-absent"));
    //----------------------------------------------------------------------
    //---------------------------2Failed-03---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-2Failed-03");
    checkResultIsFailed(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.UNEXPLICIT_LINK_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "-->;*"), new ImmutablePair(AttributeStore.TITLE_ATTR, "-->;*"));
    //----------------------------------------------------------------------
    //---------------------------2Failed-04---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-2Failed-04");
    checkResultIsFailed(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.UNEXPLICIT_LINK_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "-->;*"), new ImmutablePair(AttributeStore.TITLE_ATTR, "attribute-absent"));
    //----------------------------------------------------------------------
    //---------------------------2Failed-05---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-2Failed-05");
    checkResultIsFailed(processResult, 3, 3);
    checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.UNEXPLICIT_LINK_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "cliquez ici"), new ImmutablePair(AttributeStore.TITLE_ATTR, "cliquez ici"));
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.UNEXPLICIT_LINK_WITH_CONTEXT_MSG, HtmlElementStore.A_ELEMENT, 2, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "cliquez ici"), new ImmutablePair(AttributeStore.TITLE_ATTR, "cliquez ici"));
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.UNEXPLICIT_LINK_WITH_CONTEXT_MSG, HtmlElementStore.A_ELEMENT, 3, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "cliquez ici"), new ImmutablePair(AttributeStore.TITLE_ATTR, "attribute-absent"));
    //----------------------------------------------------------------------
    //---------------------------2Failed-06---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-2Failed-06");
    checkResultIsFailed(processResult, 2, 2);
    checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.UNEXPLICIT_LINK_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "cliquez ici"), new ImmutablePair(AttributeStore.TITLE_ATTR, "attribute-absent"));
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.UNEXPLICIT_LINK_WITH_CONTEXT_MSG, HtmlElementStore.A_ELEMENT, 2, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "cliquez ici"), new ImmutablePair(AttributeStore.TITLE_ATTR, "attribute-absent"));
    //----------------------------------------------------------------------
    //---------------------------2Failed-07---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-2Failed-07");
    checkResultIsFailed(processResult, 2, 2);
    checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.UNEXPLICIT_LINK_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "-- > ;*"), new ImmutablePair(AttributeStore.TITLE_ATTR, "-- > ;*"));
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.UNEXPLICIT_LINK_WITH_CONTEXT_MSG, HtmlElementStore.A_ELEMENT, 2, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "-- > ;*"), new ImmutablePair(AttributeStore.TITLE_ATTR, "-- > ;*"));
    //----------------------------------------------------------------------
    //---------------------------2Failed-08---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-2Failed-08");
    checkResultIsFailed(processResult, 2, 2);
    checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.UNEXPLICIT_LINK_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "-->;*"), new ImmutablePair(AttributeStore.TITLE_ATTR, "-->;*"));
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.UNEXPLICIT_LINK_WITH_CONTEXT_MSG, HtmlElementStore.A_ELEMENT, 2, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "-->;*"), new ImmutablePair(AttributeStore.TITLE_ATTR, "attribute-absent"));
    //----------------------------------------------------------------------
    //---------------------------2Failed-09---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-2Failed-09");
    checkResultIsFailed(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.UNEXPLICIT_LINK_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "cliquez ici"), new ImmutablePair(AttributeStore.TITLE_ATTR, "cliquez ici"));
    //----------------------------------------------------------------------
    //---------------------------2Failed-10---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-2Failed-10");
    checkResultIsFailed(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.UNEXPLICIT_LINK_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "cliquez ici"), new ImmutablePair(AttributeStore.TITLE_ATTR, "attribute-absent"));
    //----------------------------------------------------------------------
    //---------------------------2Failed-11---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-2Failed-11");
    checkResultIsFailed(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.UNEXPLICIT_LINK_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "--> ;*"), new ImmutablePair(AttributeStore.TITLE_ATTR, "--> ;*"));
    //----------------------------------------------------------------------
    //---------------------------2Failed-12---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-2Failed-12");
    checkResultIsFailed(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.UNEXPLICIT_LINK_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "-- >;*"), new ImmutablePair(AttributeStore.TITLE_ATTR, "attribute-absent"));
    //----------------------------------------------------------------------
    //---------------------------3NMI-01------------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-3NMI-01");
    checkResultIsPreQualified(processResult, 2, 2);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.UNEXPLICIT_LINK_WITH_CONTEXT_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "cliquez ici"), new ImmutablePair(AttributeStore.TITLE_ATTR, "attribute-absent"));
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.UNEXPLICIT_LINK_WITH_CONTEXT_MSG, HtmlElementStore.A_ELEMENT, 2, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "cliquez ici"), new ImmutablePair(AttributeStore.TITLE_ATTR, "attribute-absent"));
    //----------------------------------------------------------------------
    //---------------------------3NMI-02------------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-3NMI-02");
    checkResultIsPreQualified(processResult, 2, 2);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.UNEXPLICIT_LINK_WITH_CONTEXT_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "cliquez ici"), new ImmutablePair(AttributeStore.TITLE_ATTR, "cliquez ici"));
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.UNEXPLICIT_LINK_WITH_CONTEXT_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "cliquez ici"), new ImmutablePair(AttributeStore.TITLE_ATTR, "cliquez ici"));
    //----------------------------------------------------------------------
    //---------------------------3NMI-03------------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-3NMI-03");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.UNEXPLICIT_LINK_WITH_CONTEXT_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "-- > ;*"), new ImmutablePair(AttributeStore.TITLE_ATTR, "-- > ;*"));
    //----------------------------------------------------------------------
    //---------------------------3NMI-04------------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-3NMI-04");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_LINK_WITH_CONTEXT_PERTINENCE_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "This is a combined link"), new ImmutablePair(AttributeStore.TITLE_ATTR, "attribute-absent"));
    //----------------------------------------------------------------------
    //---------------------------3NMI-05------------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.04-3NMI-05");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_LINK_WITH_CONTEXT_PERTINENCE_MSG, HtmlElementStore.A_ELEMENT, 1, new ImmutablePair(HtmlElementStore.TEXT_ELEMENT2, "This is a combined link"), new ImmutablePair(AttributeStore.TITLE_ATTR, "This is a combined link and more"));
    //----------------------------------------------------------------------
    //---------------------------4NA-01-------------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.04-4NA-01"));
    //----------------------------------------------------------------------
    //---------------------------4NA-02-------------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.04-4NA-02"));
    //----------------------------------------------------------------------
    //---------------------------4NA-03-------------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.04-4NA-03"));
    //----------------------------------------------------------------------
    //---------------------------4NA-04-------------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.04-4NA-04"));
    //----------------------------------------------------------------------
    //---------------------------4NA-05-------------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.04-4NA-05"));
    // other tests about links, scope of other is disjunted from the scope
    // of the current test : All these scopes are not applicable
    //----------------------------------------------------------------------
    //---------------------------4NA-6.1.1----------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.01-2Failed-01");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.01-2Failed-02");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.01-2Failed-03");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.01-2Failed-04");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.01-2Failed-05");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.01-2Failed-06");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.01-2Failed-07");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.01-2Failed-08");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.01-3NMI-01");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.01-3NMI-02");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.01-3NMI-03");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.01-3NMI-05");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.01-3NMI-06");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.01-3NMI-07");
    checkResultIsNotApplicable(processResult);
    //----------------------------------------------------------------------
    //---------------------------4NA-6.1.2----------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.01.02-2Failed-01");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-2Failed-02");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-2Failed-03");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-2Failed-04");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-2Failed-05");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-2Failed-06");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-2Failed-07");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-2Failed-08");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-2Failed-09");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-2Failed-10");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-2Failed-11");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-2Failed-12");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-3NMI-01");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-3NMI-02");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-3NMI-03");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-3NMI-05");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.02-3NMI-06");
    //----------------------------------------------------------------------
    //---------------------------4NA-6.1.3----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-2Failed-01");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-2Failed-02");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-2Failed-03");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-2Failed-04");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-2Failed-05");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-2Failed-06");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-2Failed-07");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-2Failed-08");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-3NMI-01");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-3NMI-02");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-3NMI-03");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-3NMI-05");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-3NMI-06");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.01.03-3NMI-07");
    //----------------------------------------------------------------------
    //---------------------------4NA-6.1.5----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.05-2Failed-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.05-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.05-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.05-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.05-2Failed-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.05-3NMI-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.05-3NMI-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.05-3NMI-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.05-3NMI-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.05-3NMI-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.01.05-3NMI-06"));
    //----------------------------------------------------------------------
    //---------------------------4NA-6.5.1----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.05.01-2Failed-01");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.05.01-2Failed-02");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.05.01-2Failed-03");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.05.01-2Failed-04");
    checkResultIsNotApplicable(processResult);
    processResult = processPageTest("Rgaa32016.Test.06.05.01-2Failed-05");
    checkResultIsNotApplicable(processResult);
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-4NA-01"));
}
Also used : ImmutablePair(org.apache.commons.lang3.tuple.ImmutablePair) ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 52 with ProcessResult

use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.

the class Rgaa32016Rule060201Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //---------------------------2Failed-01---------------------------------
    //----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("Rgaa32016.Test.06.02.01-2Failed-01");
    checkResultIsFailed(processResult, 3, 1);
    //----------------------------------------------------------------------
    //---------------------------2Failed-02---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.01-2Failed-02");
    checkResultIsFailed(processResult, 3, 1);
    //----------------------------------------------------------------------
    //---------------------------2Failed-03---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.01-2Failed-03");
    checkResultIsFailed(processResult, 3, 1);
    //----------------------------------------------------------------------
    //---------------------------2Failed-04---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.01-2Failed-04");
    checkResultIsFailed(processResult, 3, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-01---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.01-3NMI-01");
    checkResultIsPreQualified(processResult, 3, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-02---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.01-3NMI-02");
    checkResultIsPreQualified(processResult, 3, 1);
    //----------------------------------------------------------------------
    //------------------------------4NA-01----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.01-4NA-01"), 2);
    //----------------------------------------------------------------------
    //------------------------------4NA-02----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.01-4NA-02"), 3);
    //----------------------------------------------------------------------
    //------------------------------4NA-03----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.01-4NA-03"), 2);
    //----------------------------------------------------------------------
    //------------------------------4NA-04----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.01-4NA-04"), 2);
    // other tests about links, scope of other is disjunted from the scope
    // of the current test : All these scopes are not applicable
    //----------------------------------------------------------------------
    //---------------------------4NA-6.2.2----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-2Failed-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-3NMI-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-3NMI-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-3NMI-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-3NMI-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-3NMI-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-3NMI-06"));
    //----------------------------------------------------------------------
    //---------------------------4NA-6.2.3----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.03-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.03-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.03-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.03-3NMI-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.03-3NMI-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.03-3NMI-03"));
    //----------------------------------------------------------------------
    //---------------------------4NA-6.2.4----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-2Failed-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-2Failed-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-2Failed-06"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-2Failed-07"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-2Failed-08"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-2Failed-09"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-2Failed-10"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-3NMI-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-3NMI-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-3NMI-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-3NMI-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-3NMI-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-3NMI-06"));
    //----------------------------------------------------------------------
    //---------------------------4NA-6.2.4----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.2.5-2Failed-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.2.5-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.2.5-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.2.5-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.2.5-3NMI-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.2.5-3NMI-02"));
    //----------------------------------------------------------------------
    //---------------------------4NA-6.5.1----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-01"), 0);
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-02"), 0);
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-03"), 0);
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-04"), 0);
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-05"), 0);
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 53 with ProcessResult

use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.

the class Rgaa32016Rule060203Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //---------------------------2Failed-01---------------------------------
    //----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("Rgaa32016.Test.06.02.04-2Failed-01");
    checkResultIsFailed(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------2Failed-02---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-2Failed-02");
    checkResultIsFailed(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------2Failed-02---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-2Failed-03");
    checkResultIsFailed(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------2Failed-02---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-2Failed-04");
    checkResultIsFailed(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------2Failed-02---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-2Failed-05");
    checkResultIsFailed(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------2Failed-02---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-2Failed-06");
    checkResultIsFailed(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------2Failed-02---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-2Failed-07");
    checkResultIsFailed(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------2Failed-02---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-2Failed-08");
    checkResultIsFailed(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------2Failed-02---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-2Failed-09");
    checkResultIsFailed(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------2Failed-02---------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-2Failed-10");
    checkResultIsFailed(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------3NMI-01------------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-3NMI-01");
    checkResultIsPreQualified(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------3NMI-02------------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-3NMI-02");
    checkResultIsPreQualified(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------3NMI-03------------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-3NMI-03");
    checkResultIsPreQualified(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------3NMI-04------------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-3NMI-04");
    checkResultIsPreQualified(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------3NMI-05------------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-3NMI-05");
    checkResultIsPreQualified(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------3NMI-06------------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa32016.Test.06.02.04-3NMI-06");
    checkResultIsPreQualified(processResult, 1, 1);
    //----------------------------------------------------------------------
    //---------------------------4NA-01-------------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-4NA-01"));
    //----------------------------------------------------------------------
    //---------------------------4NA-02-------------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-4NA-02"), 1);
    //----------------------------------------------------------------------
    //---------------------------4NA-03-------------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-4NA-03"), 1);
    //----------------------------------------------------------------------
    //---------------------------4NA-04-------------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-4NA-04"));
    //----------------------------------------------------------------------
    //---------------------------4NA-05-------------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.04-4NA-05"));
    // other tests about links, scope of other is disjunted from the scope
    // of the current test : All these scopes are not applicable
    //----------------------------------------------------------------------
    //---------------------------4NA-6.2.1----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.01-2Failed-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.01-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.01-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.01-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.01-3NMI-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.01-3NMI-02"));
    //----------------------------------------------------------------------
    //---------------------------4NA-6.2.2----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-2Failed-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-3NMI-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-3NMI-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-3NMI-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-3NMI-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-3NMI-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.02-3NMI-06"));
    //----------------------------------------------------------------------
    //---------------------------4NA-6.2.3----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.03-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.03-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.03-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.03-3NMI-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.03-3NMI-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.02.03-3NMI-03"));
    //----------------------------------------------------------------------
    //---------------------------4NA-6.2.3----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.2.5-2Failed-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.2.5-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.2.5-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.2.5-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.2.5-3NMI-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.2.5-3NMI-02"));
    //----------------------------------------------------------------------
    //---------------------------4NA-6.5.1----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-01"), 0);
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-02"), 0);
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-03"), 0);
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-04"), 0);
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-05"), 0);
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 54 with ProcessResult

use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.

the class Rgaa32016Rule060303Test method setProcess.

@Override
protected void setProcess() {
    ProcessResult processResult = processPageTest("Rgaa32016.Test.06.03.04-2Failed-01");
    assertEquals(TestSolution.FAILED, processResult.getValue());
    assertEquals(1, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-2Failed-02");
    assertEquals(TestSolution.FAILED, processResult.getValue());
    assertEquals(1, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-2Failed-03");
    assertEquals(TestSolution.FAILED, processResult.getValue());
    assertEquals(1, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-2Failed-04");
    assertEquals(TestSolution.FAILED, processResult.getValue());
    assertEquals(1, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-2Failed-05");
    assertEquals(TestSolution.FAILED, processResult.getValue());
    assertEquals(3, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getIssue());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[2]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[2]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-2Failed-06");
    assertEquals(TestSolution.FAILED, processResult.getValue());
    assertEquals(2, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-2Failed-07");
    assertEquals(TestSolution.FAILED, processResult.getValue());
    assertEquals(2, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-2Failed-08");
    assertEquals(TestSolution.FAILED, processResult.getValue());
    assertEquals(2, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-2Failed-09");
    assertEquals(TestSolution.FAILED, processResult.getValue());
    assertEquals(1, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-2Failed-10");
    assertEquals(TestSolution.FAILED, processResult.getValue());
    assertEquals(1, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-2Failed-11");
    assertEquals(TestSolution.FAILED, processResult.getValue());
    assertEquals(1, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-2Failed-12");
    assertEquals(TestSolution.FAILED, processResult.getValue());
    assertEquals(1, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.UNEXPLICIT_LINK_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.FAILED, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-3NMI-01");
    assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
    assertEquals(2, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.CHECK_LINK_PERTINENCE_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.NEED_MORE_INFO, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    assertEquals(RemarkMessageStore.CHECK_LINK_PERTINENCE_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
    assertEquals(TestSolution.NEED_MORE_INFO, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-3NMI-02");
    assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
    assertEquals(2, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.CHECK_LINK_PERTINENCE_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.NEED_MORE_INFO, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    assertEquals(RemarkMessageStore.CHECK_LINK_PERTINENCE_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
    assertEquals(TestSolution.NEED_MORE_INFO, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-3NMI-03");
    assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
    assertEquals(1, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.CHECK_LINK_PERTINENCE_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.NEED_MORE_INFO, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-3NMI-04");
    assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
    assertEquals(2, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.CHECK_LINK_PERTINENCE_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.NEED_MORE_INFO, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    assertEquals(RemarkMessageStore.CHECK_LINK_PERTINENCE_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getMessageCode());
    assertEquals(TestSolution.NEED_MORE_INFO, ((ProcessRemark) processResult.getRemarkSet().toArray()[1]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-3NMI-05");
    assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
    assertEquals(1, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.CHECK_LINK_PERTINENCE_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.NEED_MORE_INFO, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-3NMI-06");
    assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
    assertEquals(1, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.CHECK_LINK_PERTINENCE_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.NEED_MORE_INFO, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-3NMI-07");
    assertEquals(TestSolution.NEED_MORE_INFO, processResult.getValue());
    assertEquals(1, processResult.getRemarkSet().size());
    assertEquals(RemarkMessageStore.CHECK_LINK_PERTINENCE_MSG, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getMessageCode());
    assertEquals(TestSolution.NEED_MORE_INFO, ((ProcessRemark) processResult.getRemarkSet().toArray()[0]).getIssue());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-4NA-01");
    assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
    assertNull(processResult.getRemarkSet());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-4NA-02");
    assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
    assertNull(processResult.getRemarkSet());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-4NA-03");
    assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
    assertNull(processResult.getRemarkSet());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-4NA-04");
    assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
    assertNull(processResult.getRemarkSet());
    processResult = processPageTest("Rgaa32016.Test.06.03.04-4NA-05");
    assertEquals(TestSolution.NOT_APPLICABLE, processResult.getValue());
    assertNull(processResult.getRemarkSet());
    // 06.03.01 testcases : All is Not Applicable
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-2Failed-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-2Failed-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-2Failed-06"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-2Failed-07"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-3NMI-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-3NMI-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-3NMI-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-3NMI-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-3NMI-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-3NMI-06"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-3NMI-07"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-3NMI-08"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.01-3NMI-09"));
    // 06.03.02 testcases : All is Not Applicable
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-2Failed-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-2Failed-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-2Failed-06"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-2Failed-07"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-2Failed-08"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-2Failed-09"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-2Failed-10"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-2Failed-11"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-2Failed-12"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-3NMI-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-3NMI-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-3NMI-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-3NMI-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-3NMI-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.02-3NMI-06"));
    // 06.03.03 testcases : All is Not Applicable
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-2Failed-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-2Failed-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-2Failed-06"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-2Failed-07"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-2Failed-08"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-3NMI-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-3NMI-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-3NMI-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-3NMI-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-3NMI-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-3NMI-06"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.03.03-3NMI-07"));
    // 6.3.5 testcases : All is Not Applicable
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.3.5-2Failed-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.3.5-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.3.5-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.3.5-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.3.5-2Failed-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.6.3.5-3NMI-01"));
    // 06.05.01 testcases : All is Not Applicable
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-01"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-02"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-03"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-04"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-2Failed-05"));
    checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.06.05.01-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 55 with ProcessResult

use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.

the class Rgaa32016Rule060401Test method setProcess.

@Override
protected void setProcess() {
    ProcessResult processResult = processPageTest("Rgaa32016.Test.06.04.01-1Passed-01");
    assertEquals(TestSolution.PASSED, processResult.getValue());
    processResult = processPageTest("Rgaa32016.Test.06.04.01-1Passed-02");
    assertEquals(TestSolution.PASSED, processResult.getValue());
    processResult = processPageTest("Rgaa32016.Test.06.04.01-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.01-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.01-2Failed-03");
    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.01-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.01-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.01-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());
    assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-4NA-01").getValue());
    assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-4NA-02").getValue());
    assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-4NA-03").getValue());
    assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-4NA-04").getValue());
    assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-4NA-05").getValue());
    assertEquals(TestSolution.NOT_APPLICABLE, processPageTest("Rgaa32016.Test.06.04.01-4NA-06").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());
    // 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());
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Aggregations

ProcessResult (org.asqatasun.entity.audit.ProcessResult)1081 SourceCodeRemark (org.asqatasun.entity.audit.SourceCodeRemark)143 ImmutablePair (org.apache.commons.lang3.tuple.ImmutablePair)125 LinkedHashSet (java.util.LinkedHashSet)76 EvidenceElement (org.asqatasun.entity.audit.EvidenceElement)53 IndefiniteResult (org.asqatasun.entity.audit.IndefiniteResult)51 ProcessRemark (org.asqatasun.entity.audit.ProcessRemark)40 Map (java.util.Map)23 HashMap (java.util.HashMap)22 WebResource (org.asqatasun.entity.subject.WebResource)15 SSP (org.asqatasun.entity.audit.SSP)10 ArrayList (java.util.ArrayList)5 DefiniteResult (org.asqatasun.entity.audit.DefiniteResult)5 Audit (org.asqatasun.entity.audit.Audit)4 Test (org.asqatasun.entity.reference.Test)4 List (java.util.List)3 SourceCodeRemarkImpl (org.asqatasun.entity.audit.SourceCodeRemarkImpl)3 Page (org.asqatasun.entity.subject.Page)3 Site (org.asqatasun.entity.subject.Site)3 RuleImplementation (org.asqatasun.ruleimplementation.RuleImplementation)3