Package br.com.six2six.fixturefactory

Source Code of br.com.six2six.fixturefactory.FixtureUserTest

package br.com.six2six.fixturefactory;

import static junit.framework.Assert.assertNotNull;

import org.junit.BeforeClass;
import org.junit.Test;

import br.com.six2six.fixturefactory.loader.FixtureFactoryLoader;
import br.com.six2six.fixturefactory.model.User;

public class FixtureUserTest {

  @BeforeClass
  public static void setUp() {
    FixtureFactoryLoader.loadTemplates("br.com.six2six.template");
  }

  @Test
  public void fixtureAnyUser() {
    User user = Fixture.from(User.class).gimme("anyValidUser");
    assertNotNull("User should not be null", user);
  }

  @Test
  public void fixtureFemaleUser() {
    User user = Fixture.from(User.class).gimme("validFemaleUser");
    assertNotNull("User should not be null", user);
  }
 
}
TOP

Related Classes of br.com.six2six.fixturefactory.FixtureUserTest

TOP
Copyright © 2018 www.massapi.com. 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.