Search in sources :

Example 31 with ProcessResult

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

the class Rgaa30Rule101201Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.10.12.1-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.10.12.1-2Failed-01");
    //        checkResultIsFailed(processResult, 1, 1);
    //        checkRemarkIsPresent(
    //                processResult,
    //                TestSolution.FAILED,
    //                "#MessageHere",
    //                "#CurrentElementHere",
    //                1,
    //                new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
    //----------------------------------------------------------------------
    //------------------------------3NMI-01---------------------------------
    //----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("Rgaa30.Test.10.12.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("Rgaa30.Test.10.12.1-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 32 with ProcessResult

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

the class Rgaa30Rule101404Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.10.14.4-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.10.14.4-2Failed-01");
    //        checkResultIsFailed(processResult, 1, 1);
    //        checkRemarkIsPresent(
    //                processResult,
    //                TestSolution.FAILED,
    //                "#MessageHere",
    //                "#CurrentElementHere",
    //                1,
    //                new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
    //----------------------------------------------------------------------
    //------------------------------3NMI-01---------------------------------
    //----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("Rgaa30.Test.10.14.4-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("Rgaa30.Test.10.14.4-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 33 with ProcessResult

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

the class Rgaa30Rule101502Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.10.15.2-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.10.15.2-2Failed-01");
    //        checkResultIsFailed(processResult, 1, 1);
    //        checkRemarkIsPresent(
    //                processResult,
    //                TestSolution.FAILED,
    //                "#MessageHere",
    //                "#CurrentElementHere",
    //                1,
    //                new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
    //----------------------------------------------------------------------
    //------------------------------3NMI-01---------------------------------
    //----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("Rgaa30.Test.10.15.2-3NMI-01");
    // temporary result to make the result buildable before implementation
    checkResultIsNotTested(processResult);
//        checkResultIsPreQualified(processResult, 2, 1);
//        checkRemarkIsPresent(
//                processResult,
//                TestSolution.NEED_MORE_INFO,
//                "#MessageHere",
//                "#CurrentElementHere",
//                1,
//                new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
//        checkResultIsNotApplicable(processPageTest("Rgaa30.Test.10.15.2-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 34 with ProcessResult

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

the class Rgaa30Rule100201Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.10.2.1-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.10.2.1-2Failed-01");
    //        checkResultIsFailed(processResult, 1, 1);
    //        checkRemarkIsPresent(
    //                processResult,
    //                TestSolution.FAILED,
    //                "#MessageHere",
    //                "#CurrentElementHere",
    //                1,
    //                new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
    //----------------------------------------------------------------------
    //------------------------------3NMI-01---------------------------------
    //----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("Rgaa30.Test.10.2.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("Rgaa30.Test.10.2.1-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 35 with ProcessResult

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

the class Rgaa30Rule090501Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.9.5.1-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.9.5.1-2Failed-01");
    //        checkResultIsFailed(processResult, 1, 1);
    //        checkRemarkIsPresent(
    //                processResult,
    //                TestSolution.FAILED,
    //                "#MessageHere",
    //                "#CurrentElementHere",
    //                1,
    //                new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
    //----------------------------------------------------------------------
    //------------------------------3NMI-01---------------------------------
    //----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("Rgaa30.Test.9.5.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("Rgaa30.Test.9.5.1-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Aggregations

ProcessResult (org.asqatasun.entity.audit.ProcessResult)856 SourceCodeRemark (org.asqatasun.entity.audit.SourceCodeRemark)143 ImmutablePair (org.apache.commons.lang3.tuple.ImmutablePair)109 LinkedHashSet (java.util.LinkedHashSet)77 EvidenceElement (org.asqatasun.entity.audit.EvidenceElement)53 IndefiniteResult (org.asqatasun.entity.audit.IndefiniteResult)41 ProcessRemark (org.asqatasun.entity.audit.ProcessRemark)41 WebResource (org.asqatasun.entity.subject.WebResource)8 ArrayList (java.util.ArrayList)4 Audit (org.asqatasun.entity.audit.Audit)4 DefiniteResult (org.asqatasun.entity.audit.DefiniteResult)4 Page (org.asqatasun.entity.subject.Page)4 Site (org.asqatasun.entity.subject.Site)4 List (java.util.List)3 SourceCodeRemarkImpl (org.asqatasun.entity.audit.SourceCodeRemarkImpl)3 Test (org.asqatasun.entity.reference.Test)3 Map (java.util.Map)2 Content (org.asqatasun.entity.audit.Content)2 TestSolution (org.asqatasun.entity.audit.TestSolution)2 CriterionStatistics (org.asqatasun.entity.statistics.CriterionStatistics)2