Package net.java.quickcheck.generator.support

Examples of net.java.quickcheck.generator.support.StringGenerator


   * Create a new string generator.<br>
   *
   * The characters are from the Basic Latin and Latin-1 Supplement unicode blocks.
   */
  public static ExtendibleGenerator<Character, String> strings() {
    return new StringGenerator();
  }
View Full Code Here


   * @param hi
   *            upper boundary character
   */
  public static ExtendibleGenerator<Character, String> strings(char lo,
      char hi) {
    return new StringGenerator(lo, hi);
  }
View Full Code Here

   * Create a new string generator which generates strings of characters from
   * the given string.
   */
  public static ExtendibleGenerator<Character, String> strings(
      String allowedCharacters) {
    return new StringGenerator(characters(allowedCharacters));
  }
View Full Code Here

  /**
   * Create a new string generator which generates strings of characters from
   * the given string with a length between min and max.
   */
  public static ExtendibleGenerator<Character, String> strings(String allowedCharacters, int min, int max) {
    return new StringGenerator(new IntegerGenerator(min, max), characters(allowedCharacters));
  }
View Full Code Here

   *            lower size boundary
   * @param max
   *            upper size boundary
   */
  public static ExtendibleGenerator<Character, String> strings(int min, int max) {
    return new StringGenerator(new IntegerGenerator(min, max), new CharacterGenerator());
  }
View Full Code Here

   * length generator.
   *
   */
  public static ExtendibleGenerator<Character, String> strings(
      Generator<Integer> length, Generator<Character> characters) {
    return new StringGenerator(length, characters);
  }
View Full Code Here

   * generated by the given character generator.
   *
   */
  public static ExtendibleGenerator<Character, String> strings(
      Generator<Character> characterGenerator) {
    return new StringGenerator(characterGenerator);
  }
View Full Code Here

  /**
   * Create a new string generator which creates strings of characters from
   * a-z and A-Z.
   */
  public static ExtendibleGenerator<Character, String> letterStrings() {
    return new StringGenerator(characters('a', 'z')).add(characters('A', 'Z'));
  }
View Full Code Here

  /**
   * Create a new string generator which creates strings with sizes ranging
   * from loLengh to hiLength of characters from a-z and A-Z.
   */
  public static ExtendibleGenerator<Character, String> letterStrings(int min, int max) {
    StringGenerator generator = new StringGenerator(new IntegerGenerator(min, max), characters('a', 'z'));
    return generator.add(characters('A', 'Z'));
  }
View Full Code Here

   * Create a new string generator which creates strings of characters
   * generated by {@link PrimitiveGenerators#basicLatinCharacters()} and
   * {@link PrimitiveGenerators#latin1SupplementCharacters()}.
   */
  public static ExtendibleGenerator<Character, String> printableStrings() {
    return new StringGenerator(basicLatinCharacters()).add(latin1SupplementCharacters());
  }
View Full Code Here

TOP

Related Classes of net.java.quickcheck.generator.support.StringGenerator

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.