Package br.com.six2six.fixturefactory

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

package br.com.six2six.fixturefactory;

import static junit.framework.Assert.assertEquals;

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

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

public class RouteFixtureTest {

  @BeforeClass
  public static void setUp() {
    FixtureFactoryLoader.loadTemplates("br.com.six2six.template");
  }
 
  @Test
  public void shouldBuildRouteWithTwoDifferentCitiesTemplates() {
    Route route = Fixture.from(Route.class).gimme("routeWithDifferentCities");
    assertEquals("São Paulo", route.getCities().get(0).getName());
    assertEquals("Rio de Janeiro", route.getCities().get(1).getName());
  }
 
}
TOP

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

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.