@Test public void testIsOverPaymentLimitTour02() { TourInfo tour = new TourInfo(); DateTime depDay = now.withTime(0, 0, 0, 0).plusDays(6); tour.setDepDay(depDay.toDate()); boolean result = tourInfoSharedService.isOverPaymentLimit(tour); assertThat(result, is(true)); }
@Override public boolean isOverPaymentLimit(TourInfo tour) { Assert.notNull(tour, "tour must not be null"); DateTime today = dateFactory.newDateTime().withTime(0, 0, 0, 0); DateTime paymentLimit = tour.getPaymentLimit(); log.debug("today={}, paymentLimit={}", today, paymentLimit); return today.isAfter(paymentLimit); }
TourInfoSharedServiceImpl implements TourInfoSharedService { @Override public boolean isOverPaymentLimit(TourInfo tour) { Assert.notNull(tour, "tour must not be null"); DateTime today = dateFactory.newDateTime().withTime(0, 0, 0, 0); DateTime paymentLimit = tour.getPaymentLimit(); log.debug("today={}, paymentLimit={}", today, paymentLimit); return today.isAfter(paymentLimit); } }
TourInfoSharedServiceImpl implements TourInfoSharedService { @Override public boolean isOverPaymentLimit(TourInfo tour) { Assert.notNull(tour, "tour must not be null"); DateTime today = dateFactory.newDateTime().withTime(0, 0, 0, 0); DateTime paymentLimit = tour.getPaymentLimit(); log.debug("today={}, paymentLimit={}", today, paymentLimit); return today.isAfter(paymentLimit); }  }
TourInfoSharedServiceImpl implements TourInfoSharedService { @Override public boolean isOverPaymentLimit(TourInfo tour) { Assert.notNull(tour, "tour must not be null"); DateTime today = dateFactory.newDateTime().withTime(0, 0, 0, 0); DateTime paymentLimit = tour.getPaymentLimit(); log.debug("today={}, paymentLimit={}", today, paymentLimit); return today.isAfter(paymentLimit); }  @Override TourInfo findOne(String tourCode); @Override boolean isOverPaymentLimit(TourInfo tour); @Override TourInfo findOneForUpdate(String tourCode); }
TourInfoSharedServiceImpl implements TourInfoSharedService { @Override public boolean isOverPaymentLimit(TourInfo tour) { Assert.notNull(tour, "tour must not be null"); DateTime today = dateFactory.newDateTime().withTime(0, 0, 0, 0); DateTime paymentLimit = tour.getPaymentLimit(); log.debug("today={}, paymentLimit={}", today, paymentLimit); return today.isAfter(paymentLimit); }  @Override TourInfo findOne(String tourCode); @Override boolean isOverPaymentLimit(TourInfo tour); @Override TourInfo findOneForUpdate(String tourCode);  }