All Downloads are FREE. Search and download functionalities are using the official Maven repository.

autofixture.publicinterface.InlineGenerators Maven / Gradle / Ivy

package autofixture.publicinterface;

import autofixture.interfaces.InlineConstrainedGenerator;
import autofixture.interfaces.InlineGeneratorsFactory;
import autofixture.interfaces.InlineInstanceGenerator;
import com.google.common.reflect.TypeToken;

/**
 * Created by astral on 28.03.15.
 */
public class InlineGenerators {

  private static final InlineGeneratorsFactory INLINE_GENERATORS_FACTORY = new DefaultInlineGeneratorsFactory();

  public static InlineInstanceGenerator stringContaining(final String str) {
    return INLINE_GENERATORS_FACTORY.stringContaining(str);
  }

  public static InlineInstanceGenerator alphaString() {
    return INLINE_GENERATORS_FACTORY.alphaString();
  }

  public static InlineInstanceGenerator alphaString(final int length) {
    return INLINE_GENERATORS_FACTORY.alphaString(length);
  }

  public static InlineInstanceGenerator uppercaseString() {
    return INLINE_GENERATORS_FACTORY.uppercaseString();
  }

  public static InlineInstanceGenerator lowercaseString() {
    return INLINE_GENERATORS_FACTORY.lowercaseString();
  }

  public static InlineInstanceGenerator uppercaseString(final int length) {
    return INLINE_GENERATORS_FACTORY.uppercaseString(length);
  }

  public static InlineInstanceGenerator lowercaseString(final int length) {
    return INLINE_GENERATORS_FACTORY.lowercaseString(length);
  }


  public static InlineInstanceGenerator identifierString() {
    return INLINE_GENERATORS_FACTORY.identifierString();
  }

  public static InlineInstanceGenerator digitChar() {
    return INLINE_GENERATORS_FACTORY.digitChar();
  }

  public static InlineInstanceGenerator stringNotContaining(final String... excludedSubstrings) {
    return INLINE_GENERATORS_FACTORY.stringNotContaining(excludedSubstrings);
  }

  public static InlineInstanceGenerator alphaChar() {
    return INLINE_GENERATORS_FACTORY.alphaChar();
  }

  public static InlineInstanceGenerator stringOfLength(final int charactersCount) {
    return INLINE_GENERATORS_FACTORY.stringOfLength(charactersCount);
  }

  public static  InlineInstanceGenerator exploding(final TypeToken instance) {
    return INLINE_GENERATORS_FACTORY.exploding(instance);
  }

  public static  InlineConstrainedGenerator otherThan(final T... omittedValues) {
    return INLINE_GENERATORS_FACTORY.otherThan(omittedValues);
  }

  public static  InlineConstrainedGenerator without(final T... omittedValues) {
    return INLINE_GENERATORS_FACTORY.without(omittedValues);
  }

  public static InlineInstanceGenerator portNumber() {
    return INLINE_GENERATORS_FACTORY.portNumber();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy