Package samples

Examples of samples.Recipient


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

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

    // Then:
    assertThat(act.getName()).isNotEmpty();
    assertThat(act.getAddress()).isNull();
  }
View Full Code Here


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

    // When:
    Recipient a = some($Recipient());
    Recipient b = some($Recipient());

    // Then:
    assertThat(a).isNotEqualTo(b);
    assertThat(a.getName()).isNotEqualTo(b.getName());
  }
View Full Code Here

  public void testSome$Recipient_WithName() {
    // Given:
    String name = some($String());

    // When:
    Recipient act = some($Recipient().withName(name));

    // Then:
    assertThat(act.getName()).isEqualTo(name);
  }
View Full Code Here

  public void testSome$Recipient_With$Address() {
    // Given:
    String name = some($String());

    // When:
    Recipient act = some($Recipient().withName(name).withAddress($Address()));

    // Then:
    assertThat(act.getName()).isEqualTo(name);
    assertThat(act.getAddress()).isNotNull();
    assertThat(act.getAddress().getStreet()).isNotNull();
    assertThat(act.getAddress().getCity()).isNotNull();
    assertThat(act.getAddress().getPostCode()).isNotNull();
  }
View Full Code Here

TOP

Related Classes of samples.Recipient

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.