Package gnu.testlet.runner

Examples of gnu.testlet.runner.CheckResult


            // save the default locale, some tests change the default
            Locale savedLocale = Locale.getDefault();
           
            result = new RunResult("Mauve Test Run");
            addSystemProperties(result);
            currentCheck = new CheckResult(0, false);

            executeLine("", testName);
           
            // restore the default locale
            Locale.setDefault(savedLocale);
View Full Code Here


        //@Override
        public final void visit(TestComparison test) {
            if (shouldWrite(test)) {
                write(Level.TEST, test, false);
               
                CheckResult cr = test.getCheckResult();
                String result;
                if (cr == null) {
                    result = "<no checkpoint>";
                } else {
                    result = Integer.toString(cr.getNumber()) + ':';
                   
                    if (cr.getCheckPoint() == null) {
                        result += "<no name>";
                    } else {
                        result += cr.getCheckPoint();
                    }
                }
                writeCheckResult(result);
               
                writeEndLine();
View Full Code Here

        List reachedCheckResults2 = getReachedCheckResults(test2);

        final int size1 = reachedCheckResults1.size();
        final int size2 = reachedCheckResults2.size();
       
        CheckResult check2 = null;
        if (!reachedCheckResults2.isEmpty()) {
            check2 = (CheckResult) reachedCheckResults2.get(reachedCheckResults2.size() - 1);
        }
       
        cr.setProgression(pkg2, cls2, test2, check2, size2 - size1);
View Full Code Here

   
    private List getReachedCheckResults(TestResult test) {
        List checkResults = new ArrayList();
       
        for (Iterator itCheck = test.getCheckIterator(); itCheck.hasNext(); ) {
            CheckResult check = (CheckResult) itCheck.next();
            if (!check.getPassed()) {
                break;
            }
               
            checkResults.add(check);
        }
View Full Code Here

TOP

Related Classes of gnu.testlet.runner.CheckResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.