Package br.com.six2six.fixturefactory.model

Examples of br.com.six2six.fixturefactory.model.Route


    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());
  }
View Full Code Here


    assertNotNull(result.getAddress());
  }
 
  @Test
  public void shouldWorkWhenReceivingRelationsInTheConstructor() {
    Route route = Fixture.from(Route.class).gimme("valid");
    assertEquals(Long.valueOf(1L), route.getId().getValue());
    assertEquals(Long.valueOf(100L), route.getId().getSeq());
    assertNotNull(route.getCities().get(0).getName());
  }
View Full Code Here

    assertNotNull(route.getCities().get(0).getName());
  }
 
    @Test
    public void shouldWorkWhenChainingProperties() {
        Route route = Fixture.from(Route.class).gimme("chainedId");
        assertEquals(Long.valueOf(2L), route.getId().getValue());
        assertEquals(Long.valueOf(200L), route.getId().getSeq());
        assertNotNull(route.getCities().get(0).getName());
    }
View Full Code Here

TOP

Related Classes of br.com.six2six.fixturefactory.model.Route

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.