Search in sources :

Example 26 with ProcessResult

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

the class Rgaa30Rule100802Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.10.8.2-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.10.8.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.8.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.8.2-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 27 with ProcessResult

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

the class Rgaa30Rule100502Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.10.5.2-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.10.5.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.5.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.5.2-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 28 with ProcessResult

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

the class Rgaa30Rule100503Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.10.5.3-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.10.5.3-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.5.3-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.5.3-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 29 with ProcessResult

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

the class Rgaa30Rule100601Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.10.6.1-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.10.6.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.6.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.6.1-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 30 with ProcessResult

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

the class Rgaa30Rule101101Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.10.11.1-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.10.11.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.11.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.11.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