@Test public void testFindByCustomerCode03() { Customer c = new Customer("xxxx"); when(reserveRepository.findAllByCustomer(c)).thenReturn( new ArrayList<Reserve>()); List<Reserve> result = reserveService.findAllByCustomerCode("xxxx"); assertThat(result, is(notNullValue())); assertThat(result.size(), is(0)); }
@Override public List<Reserve> findAllByCustomerCode(String customerCode) { Customer customer = new Customer(customerCode); List<Reserve> reserves = reserveRepository.findAllByCustomer(customer); return reserves; }
ReserveServiceImpl implements ReserveService { @Override public List<Reserve> findAllByCustomerCode(String customerCode) { Customer customer = new Customer(customerCode); List<Reserve> reserves = reserveRepository.findAllByCustomer(customer); return reserves; } }
ReserveServiceImpl implements ReserveService { @Override public List<Reserve> findAllByCustomerCode(String customerCode) { Customer customer = new Customer(customerCode); List<Reserve> reserves = reserveRepository.findAllByCustomer(customer); return reserves; }  }
ReserveServiceImpl implements ReserveService { @Override public List<Reserve> findAllByCustomerCode(String customerCode) { Customer customer = new Customer(customerCode); List<Reserve> reserves = reserveRepository.findAllByCustomer(customer); return reserves; }  @Override Reserve findOne(String reserveNo); @Override List<Reserve> findAllByCustomerCode(String customerCode); @Override ReserveTourOutput reserve(
            ReserveTourInput input); @Override void cancel(String reserveNo); @Override ReservationUpdateOutput update(
            ReservationUpdateInput input); }
ReserveServiceImpl implements ReserveService { @Override public List<Reserve> findAllByCustomerCode(String customerCode) { Customer customer = new Customer(customerCode); List<Reserve> reserves = reserveRepository.findAllByCustomer(customer); return reserves; }  @Override Reserve findOne(String reserveNo); @Override List<Reserve> findAllByCustomerCode(String customerCode); @Override ReserveTourOutput reserve(
            ReserveTourInput input); @Override void cancel(String reserveNo); @Override ReservationUpdateOutput update(
            ReservationUpdateInput input);  }