Package samples

Examples of samples.Order


  @Test
  public void testSome$Order() {
    // Given:

    // When:
    Order act = some($Order());

    // Then:
    assertThat(act.recipient).isNotNull();
    assertThat(act.items).isNull();
  }
View Full Code Here


  @Test
  public void testSome$Order_With$ListOf5$Items() {
    // Given:

    // When:
    Order act = some($Order().withItems($listOf(5, $Item())));

    // Then:
    assertThat(act.recipient).isNotNull();
    assertThat(act.items).hasSize(5);
  }
View Full Code Here

  @Test
  public void testSome$Order_With$ListOf$Item_And$Item() {
    // Given:

    // When:
    Order act = some($Order().withItems($listOf($Item().withAmount(10), $Item().withAmount(20))));

    // Then:
    assertThat(act.recipient).isNotNull();
    assertThat(act.items).hasSize(2);
    assertThat(act.items.get(0).amount).isEqualTo(10);
View Full Code Here

TOP

Related Classes of samples.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.