Package de.olivergierke.whoops.domain.customer

Examples of de.olivergierke.whoops.domain.customer.Customer


  @Autowired AccountServiceImpl accountServiceImpl;

  @Test
  public void createNewUser() {

    Customer customer = customerService.createCustomer("Dave", "Matthews");
    assertThat(customer.getCustomerNumber(), is(notNullValue()));
  }
View Full Code Here


    Assert.hasText(firstname, "Firstname must not be null or empty!");
    Assert.hasText(lastname, "Lastname must not be null or empty!");

    CustomerNumber number = generator.generateCustomerNumber();
    Customer customer = new Customer(firstname, lastname, number);

    return repository.save(customer);
  }
View Full Code Here

TOP

Related Classes of de.olivergierke.whoops.domain.customer.Customer

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.