Examples of test()


Examples of org.springframework.rules.constraint.property.PropertyValueConstraint.test()

  public void testBeanPropertyValueConstraint() {
    And p = constraints.conjunction();
    p.add(constraints.required());
    p.add(constraints.maxLength(9));
    PropertyConstraint e = new PropertyValueConstraint("test", p);
    assertTrue(e.test(new TestBean()));

    p = constraints.conjunction();
    e = new PropertyValueConstraint("test", p);
    p.add(constraints.required());
    p.add(constraints.maxLength(3));
View Full Code Here

Examples of org.springframework.webflow.engine.TransitionCriteria.test()

    assertFalse(criteria3.tested);
  }

  public void testCriteriaChainForNoActions() {
    TransitionCriteria actionChain = TransitionCriteriaChain.criteriaChainFor(null);
    assertTrue(actionChain.test(context));
  }

  public void testCriteriaChainForActions() {
    AnnotatedAction[] actions = new AnnotatedAction[] { new AnnotatedAction(new TestAction(true)),
        new AnnotatedAction(new TestAction(false)) };
View Full Code Here

Examples of org.squirrelframework.foundation.fsm.UntypedStateMachine.test()

                try {
                    actionCondition.await();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                testStateRef.set(fsm.test("SECOND"));
                eventCondition.countDown();
            }
        }, "Test-Thread-3").start();
       
        // thread 4 dump data while processing event "FIRST"
View Full Code Here

Examples of org.virus.cvxhull.api.Tester.test()

        for (int i = 0; i < 10000; i++) {
            Tester tester = new Tester(ConvexHullAlgorithm.Algorithm.GIFT_WRAPPING,
                    1000, 1000, 1000, false);
            mainFrame.getPainter().clear();
            tester.test(mainFrame.getPainter());
        }
    }
}
View Full Code Here

Examples of plotter.PropertyTester.test()


  public void testProperties() throws InvocationTargetException, IllegalAccessException, IntrospectionException {
    CompressingXYDataset dataset = createDataset(XYDimension.X);
    PropertyTester t = new PropertyTester(dataset);
    t.test("truncationPoint", -1.1, 0.0, 1.1);
    t.test("truncationOffset", 0, 1, 10);
    t.test("compressionScale", .1, 1.0, 10.0);
    t.test("compressionOffset", -10.0, 0.0, 10.0);
  }
View Full Code Here

Examples of pspdash.data.SimpleData.test()

            if (checkDefined) {
                name = data.createDataName(prefix, name);
                return (data.getValue(name) != null);
            } else {
                SimpleData d = getSimpleValue(name);
                return (d == null ? false : d.test());
            }
        }
        return false;
    }
View Full Code Here

Examples of uk.ac.uea.threadr.ThreadTest.test()

    logger.fine(String.format("Testing: %s", clazz.getName()));
   
    /* Use every test provided to see if the class is thread safe. */
    for (Object t : tests) {
      ThreadTest test = (ThreadTest)t;
      ThreadSafety result = test.test(clazz);
      if (result != ThreadSafety.THREAD) {
        /* Any test that is not thread safe is failed. */
        failedTests.add(test.getClass());
      }
      /* If a result was returned, and it's worse than the stored one. */
 
View Full Code Here

Examples of weka.core.Capabilities.test()

   * @param instances the instances
   */
  public void setInstances(Instances instances){

      Capabilities cap = getCapabilities();
      if (!cap.test(instances))
  throw new IllegalArgumentException(cap.getFailReason());
   
      if(m_retrieval == INCREMENTAL){
          if(setStructure(instances) == CANCEL)
              cancel();
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.