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