Examples of CheckResult


Examples of com.salas.bb.updates.CheckResult

     *
     * @return component.
     */
    private Component getWordingComponent()
    {
        CheckResult result = getCheckResult();

        return ComponentsFactory.createWrappedMultilineLabel(
            MessageFormat.format(Strings.message("updates.new.version.wording"),
                new Object[] { result.getRecentVersion() }));
    }
View Full Code Here

Examples of com.salas.bb.updates.CheckResult

     *
     * @return table.
     */
    private Component getChangesTableComponent()
    {
        CheckResult result = getCheckResult();

        ChangesTableModel model = new ChangesTableModel(result.getChanges());
        JTable table = new JTable(model);
        table.setShowGrid(false);
        table.setTableHeader(null);
        UifUtilities.setTableColWidth(table, 0, 20);
        table.setDefaultRenderer(Integer.class, new ChangeTypeRenderer());
View Full Code Here

Examples of fj.test.CheckResult

    Property p = property(arbitrary(failingGen), (Integer i) -> {
      return prop(i == 0);
    });

    CheckResult res = p.check(
      1, /*minSuccessful*/
      0, /*maxDiscarded*/
      0, /*minSize*/
      1 /*maxSize*/
    );
    assertTrue("Exception not propagated!", res.isGenException());
  }
View Full Code Here

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

Examples of gnu.testlet.runner.CheckResult

        //@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

Examples of gnu.testlet.runner.CheckResult

        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

Examples of gnu.testlet.runner.CheckResult

   
    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

Examples of hu.sztaki.ilab.longneck.process.constraint.CheckResult

        this.ifObj = ifObj;
    }

    @Override
    public void beforeChildren(KernelState kernelState, Record record) throws RedirectException {
        CheckResult result = ifObj.getCondition().check(
                record, kernelState.getLastExecutionFrame().getVariables());

        if (result.isPassed() && ifObj.getThenBranch() != null) {
            throw new RedirectException(ifObj.getThenBranch().getFrameAddress(), false);
        } else if (!result.isPassed() && ifObj.getElseBranch() != null) {
            throw new RedirectException(ifObj.getElseBranch().getFrameAddress(), false);
        } else {
            throw new RedirectException(FrameAddress.RETURN, false);
        }
    }
View Full Code Here

Examples of hu.sztaki.ilab.longneck.process.constraint.CheckResult

            // Increase case counter
            ++lastCase;
           
            if (lastCase >= switchObj.getCases().size()) {
                throw new CheckError(
                        new CheckResult(switchObj, false, null, null, "All cases failed.", errors));
            }
        }
View Full Code Here

Examples of hu.sztaki.ilab.longneck.process.constraint.CheckResult

           
            // Match against pattern and assign matched parts
            Matcher m = pattern.matcher(value);
            if (! m.find()) {
                throw new CheckError(
                        new CheckResult(this, false, fieldName, value,
                        String.format("Regular expression: '%1$s'", regexp)));
            }
           
            // Populate variable scope with matched parts
            MatchResult res = m.toMatchResult();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.