Package br.com.six2six.fixturefactory.model

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


    FixtureFactoryLoader.loadTemplates("br.com.six2six.template");
  }
 
  @Test
  public void circularReference() {
    Order order = Fixture.from(Order.class).gimme("valid");
   
    for (Item item : order.getItems()) {
      assertTrue("order relationship with item should have the same reference", item.getOrder() == order);
    }
   
    assertTrue("payment one-to-one relationship should have the same reference", order == order.getPayment().getOrder());
  }
View Full Code Here


    assertTrue("payment one-to-one relationship should have the same reference", order == order.getPayment().getOrder());
  }
 
  @Test
  public void circularReferenceEspecifyProperty() {
    Order order = Fixture.from(Order.class).gimme("otherValid");
   
    for (Item item : order.getItems()) {
      assertTrue("order relationship with item should have the same reference", item.getOrder() == order);
    }
   
    assertTrue("payment one-to-one relationship should have the same reference", order == order.getPayment().getOrder());
  }
View Full Code Here

TOP

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

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.