@Test public void testFindForCriteria() { Set<String> ids = new HashSet<>(); ids.add("2"); FeeCriteria feeCriteria = new FeeCriteria(); feeCriteria.setFeeCriteria("100.0"); feeCriteria.setFromDate(Long.valueOf("987456321")); feeCriteria.setId(ids); feeCriteria.setPageSize(Short.valueOf("2")); feeCriteria.setTenantId("ap.kurnool"); feeCriteria.setToDate(Long.valueOf("987456321")); when(jdbcTemplate.query(any(String.class), any(FeeRowMapper.class))).thenReturn(getFeeList()); feeRepository.findForCriteria(feeCriteria); }
public List<Fee> findForCriteria(FeeCriteria feeCriteria) { return jdbcTemplate.query(feeQueryBuilder.getQuery(feeCriteria), feeRowMapper); }
FeeRepository { public List<Fee> findForCriteria(FeeCriteria feeCriteria) { return jdbcTemplate.query(feeQueryBuilder.getQuery(feeCriteria), feeRowMapper); } }
FeeRepository { public List<Fee> findForCriteria(FeeCriteria feeCriteria) { return jdbcTemplate.query(feeQueryBuilder.getQuery(feeCriteria), feeRowMapper); }  }
FeeRepository { public List<Fee> findForCriteria(FeeCriteria feeCriteria) { return jdbcTemplate.query(feeQueryBuilder.getQuery(feeCriteria), feeRowMapper); }  List<Fee> findForCriteria(FeeCriteria feeCriteria); void createFee(FeeRequest feeRequest); void updateFee(FeeRequest feeRequest); }
FeeRepository { public List<Fee> findForCriteria(FeeCriteria feeCriteria) { return jdbcTemplate.query(feeQueryBuilder.getQuery(feeCriteria), feeRowMapper); }  List<Fee> findForCriteria(FeeCriteria feeCriteria); void createFee(FeeRequest feeRequest); void updateFee(FeeRequest feeRequest);  }