@Test public void shouldSearchTaxPeriods() { List<TaxPeriod> taxPeriods = new ArrayList<>(); taxPeriods.add(getTaxPeriod()); TaxPeriodResponse taxPeriodResponse = new TaxPeriodResponse(); taxPeriodResponse.setTaxPeriods(taxPeriods); TaxPeriodCriteria taxPeriodCriteria = TaxPeriodCriteria.builder().tenantId("ap").build(); when(taxPeriodRepository.searchTaxPeriods(any(TaxPeriodCriteria.class))).thenReturn(taxPeriods); assertEquals(taxPeriodResponse, taxPeriodService.searchTaxPeriods(taxPeriodCriteria, new RequestInfo())); }
public TaxPeriodResponse searchTaxPeriods(final TaxPeriodCriteria taxPeriodCriteria, final RequestInfo requestInfo) { LOGGER.info("-- TaxPeriodService searchTaxPeriods -- "); final List<TaxPeriod> taxPeriods = taxPeriodRepository.getTaxPeriod(requestInfo,taxPeriodCriteria); return getTaxPeriodResponse(taxPeriods, requestInfo); }
TaxPeriodService { public TaxPeriodResponse searchTaxPeriods(final TaxPeriodCriteria taxPeriodCriteria, final RequestInfo requestInfo) { LOGGER.info("-- TaxPeriodService searchTaxPeriods -- "); final List<TaxPeriod> taxPeriods = taxPeriodRepository.getTaxPeriod(requestInfo,taxPeriodCriteria); return getTaxPeriodResponse(taxPeriods, requestInfo); } }
TaxPeriodService { public TaxPeriodResponse searchTaxPeriods(final TaxPeriodCriteria taxPeriodCriteria, final RequestInfo requestInfo) { LOGGER.info("-- TaxPeriodService searchTaxPeriods -- "); final List<TaxPeriod> taxPeriods = taxPeriodRepository.getTaxPeriod(requestInfo,taxPeriodCriteria); return getTaxPeriodResponse(taxPeriods, requestInfo); }  }
TaxPeriodService { public TaxPeriodResponse searchTaxPeriods(final TaxPeriodCriteria taxPeriodCriteria, final RequestInfo requestInfo) { LOGGER.info("-- TaxPeriodService searchTaxPeriods -- "); final List<TaxPeriod> taxPeriods = taxPeriodRepository.getTaxPeriod(requestInfo,taxPeriodCriteria); return getTaxPeriodResponse(taxPeriods, requestInfo); }  TaxPeriodResponse searchTaxPeriods(final TaxPeriodCriteria taxPeriodCriteria, final RequestInfo requestInfo); TaxPeriodResponse create(TaxPeriodRequest taxPeriodRequest); TaxPeriodResponse createAsync(TaxPeriodRequest taxPeriodRequest); TaxPeriodResponse updateAsync(TaxPeriodRequest taxPeriodRequest); TaxPeriodResponse update(TaxPeriodRequest taxPeriodRequest); }
TaxPeriodService { public TaxPeriodResponse searchTaxPeriods(final TaxPeriodCriteria taxPeriodCriteria, final RequestInfo requestInfo) { LOGGER.info("-- TaxPeriodService searchTaxPeriods -- "); final List<TaxPeriod> taxPeriods = taxPeriodRepository.getTaxPeriod(requestInfo,taxPeriodCriteria); return getTaxPeriodResponse(taxPeriods, requestInfo); }  TaxPeriodResponse searchTaxPeriods(final TaxPeriodCriteria taxPeriodCriteria, final RequestInfo requestInfo); TaxPeriodResponse create(TaxPeriodRequest taxPeriodRequest); TaxPeriodResponse createAsync(TaxPeriodRequest taxPeriodRequest); TaxPeriodResponse updateAsync(TaxPeriodRequest taxPeriodRequest); TaxPeriodResponse update(TaxPeriodRequest taxPeriodRequest); static final Logger LOGGER; }