Package net.java.quickcheck.junit

Examples of net.java.quickcheck.junit.ForAll


  private final ForAll annotation;

  public QuickCheckMethodRoadie(Object test, QuickCheckTestMethod method,
      RunNotifier notifier, Description description) {
    super(test, method, notifier, description);
    ForAll annotation = method.getMethod().getAnnotation(ForAll.class);
    this.annotation = annotation;
    generator = new RoundRobinGenerator<Object>(createGenerator(test,
        annotation));
    this.test = test;
    this.method = method;
View Full Code Here


  }

  private static void addTesters(TestSuite suite, Class<?> testClass,
      Method characteristicMethod) {

    ForAll annotation = characteristicMethod.getAnnotation(ForAll.class);
    Object testClassInstance = GeneratorFactory.newInstance(testClass);
    suite.addTest(new CharacteristicsTester(testClassInstance,
        new RoundRobinGenerator<Object>(createGenerator(
            testClassInstance, annotation)), characteristicMethod,
        annotation.runs(), annotation.verbose()));
  }
View Full Code Here

TOP

Related Classes of net.java.quickcheck.junit.ForAll

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.