Package br.com.six2six.fixturefactory.function

Examples of br.com.six2six.fixturefactory.function.FixtureFunction


    /**
     * @deprecated use {@link one(clazz, label)} instead.
     */
    @Deprecated
  public Function fixture(Class<?> clazz, String label) {
      return new FixtureFunction(clazz, label);
    }
View Full Code Here


    /**
     * @deprecated use {@link has(quantity).of(clazz, label)} instead.
     */
    @Deprecated
  public Function fixture(Class<?> clazz, Integer quantity, String label) {
      return new FixtureFunction(clazz, label, quantity);
    }
View Full Code Here

    /**
     * @deprecated use {@link one(clazz, label)} instead.
     */
    @Deprecated
  public Function fixture(Class<?> clazz, String label) {
      return new FixtureFunction(clazz, label);
    }
View Full Code Here

    /**
     * @deprecated use {@link has(quantity).of(clazz, label)} instead.
     */
    @Deprecated
  public Function fixture(Class<?> clazz, Integer quantity, String label) {
      return new FixtureFunction(clazz, label, quantity);
    }
View Full Code Here

    /**
     * @deprecated use {@link one(clazz, label)} instead.
     */
    @Deprecated
  public Function fixture(Class<?> clazz, String label) {
      return new FixtureFunction(clazz, label);
    }
View Full Code Here

    /**
     * @deprecated use {@link has(quantity).of(clazz, label)} instead.
     */
    @Deprecated
  public Function fixture(Class<?> clazz, Integer quantity, String label) {
      return new FixtureFunction(clazz, label, quantity);
    }
View Full Code Here

    this.targetAttribute = targetAttribute;
  }

  @Override
  public <T> T generateValue() {
    return new FixtureFunction(clazz, labels, quantity).generateValue();
  }
View Full Code Here

    return new FixtureFunction(clazz, labels, quantity).generateValue();
  }
 
  @Override
  public <T> T generateValue(Processor processor) {
    return new FixtureFunction(clazz, labels, quantity).generateValue(processor);
  }
View Full Code Here

    return new FixtureFunction(clazz, labels, quantity).generateValue(processor);
  }
 
  @Override
  public <T> T generateValue(Object owner) {
    T target = new FixtureFunction(clazz, labels, quantity).generateValue(owner);
   
    if (target instanceof Collection<?>) {
      for (Object item : (Collection<?>) target) {
        this.setField(item, owner);     
      }
View Full Code Here

    return target;
  }
 
  @Override
  public <T> T generateValue(Object owner, Processor processor) {
    T target = new FixtureFunction(clazz, labels, quantity).generateValue(owner, processor);
   
    if (target instanceof Collection<?>) {
      for (Object item : (Collection<?>) target) {
        this.setField(item, owner);     
      }
View Full Code Here

TOP

Related Classes of br.com.six2six.fixturefactory.function.FixtureFunction

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.