Package br.com.six2six.fixturefactory.function.impl

Examples of br.com.six2six.fixturefactory.function.impl.NameFunction


  public Function random(Class<?> clazz, Range range) {
    return new RandomFunction(clazz, range);
  }

  public Function name() {
    return new NameFunction();
  }
View Full Code Here


  public Function name() {
    return new NameFunction();
  }

  public Function name(Gender gender) {
    return new NameFunction(gender);
  }
View Full Code Here

  public Function name(Gender gender) {
    return new NameFunction(gender);
  }

  public Function firstName() {
    return new NameFunction(FIRST);
  }
View Full Code Here

  public Function firstName() {
    return new NameFunction(FIRST);
  }

  public Function firstName(Gender gender) {
    return new NameFunction(FIRST, gender);
  }
View Full Code Here

  public Function firstName(Gender gender) {
    return new NameFunction(FIRST, gender);
  }
 
  public Function lastName() {
    return new NameFunction(LAST);
  }
View Full Code Here

public class NameFunctionTest {

  @Test
  public void generateAnyName() {
    String value = new NameFunction().generateValue();
    assertNotNull("Generated full name can not be null", value);
  }
View Full Code Here

    assertNotNull("Generated full name can not be null", value);
  }
 
  @Test
  public void generateMaleName() {
    String value = new NameFunction(Gender.MALE).generateValue();
    assertNotNull("Generated male name can not be null", value);
  }
View Full Code Here

    assertNotNull("Generated male name can not be null", value);
  }

  @Test
  public void generateAnyFirstName() {
    String value = new NameFunction(NameType.FIRST).generateValue();
    assertNotNull("Generated first name can not be null", value);
  }
View Full Code Here

    assertNotNull("Generated first name can not be null", value);
  }

  @Test
  public void generateFemaleFirstName() {
    String value = new NameFunction(NameType.FIRST, Gender.FEMALE).generateValue();
    assertNotNull("Generated female first name can not be null", value);
  }
View Full Code Here

    assertNotNull("Generated female first name can not be null", value);
  }

  @Test
  public void generateLastName() {
    String value = new NameFunction(NameType.LAST).generateValue();
    assertNotNull("Generated last name can not be null", value);
  }
View Full Code Here

TOP

Related Classes of br.com.six2six.fixturefactory.function.impl.NameFunction

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.