Package de.olivergierke.whoops.repository.customer

Examples of de.olivergierke.whoops.repository.customer.CustomerRepository.save()


  }

  @Bean
  public CustomerRepository customerRepository() {
    CustomerRepository repository = mock(CustomerRepository.class);
    when(repository.save(any(Customer.class))).thenAnswer(withArgument());
    return repository;
  }

  private static <T> Answer<T> withArgument() {
    return new ArgumentAnswer<T>();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.