@Test public void getNoticesTest(){ }
public List<Notice> getNotices(NoticeCriteria noticeCriteria) { List<Notice> notices = null; Map<String, Object> params = new HashMap<>(); String queryString = NoticeQueryBuilder.getNoticeQuery(noticeCriteria, params); try { notices = namedParameterJdbcTemplate.query(queryString, params, new NoticeRowMapper()); } catch (DataAccessException e) { LOGGER.info("the exception from notice repo query :: " + e); throw new RuntimeException(e.getMessage()); } return notices; }
NoticeRepository { public List<Notice> getNotices(NoticeCriteria noticeCriteria) { List<Notice> notices = null; Map<String, Object> params = new HashMap<>(); String queryString = NoticeQueryBuilder.getNoticeQuery(noticeCriteria, params); try { notices = namedParameterJdbcTemplate.query(queryString, params, new NoticeRowMapper()); } catch (DataAccessException e) { LOGGER.info("the exception from notice repo query :: " + e); throw new RuntimeException(e.getMessage()); } return notices; } }
NoticeRepository { public List<Notice> getNotices(NoticeCriteria noticeCriteria) { List<Notice> notices = null; Map<String, Object> params = new HashMap<>(); String queryString = NoticeQueryBuilder.getNoticeQuery(noticeCriteria, params); try { notices = namedParameterJdbcTemplate.query(queryString, params, new NoticeRowMapper()); } catch (DataAccessException e) { LOGGER.info("the exception from notice repo query :: " + e); throw new RuntimeException(e.getMessage()); } return notices; }  }
NoticeRepository { public List<Notice> getNotices(NoticeCriteria noticeCriteria) { List<Notice> notices = null; Map<String, Object> params = new HashMap<>(); String queryString = NoticeQueryBuilder.getNoticeQuery(noticeCriteria, params); try { notices = namedParameterJdbcTemplate.query(queryString, params, new NoticeRowMapper()); } catch (DataAccessException e) { LOGGER.info("the exception from notice repo query :: " + e); throw new RuntimeException(e.getMessage()); } return notices; }  Notice createNotice(NoticeRequest noticeRequest); DueNotice createDueNotice(DueNoticeRequest noticeRequest); List<DueNotice> getAllDueNoticesByAgreement(DueNoticeCriteria noticeCriteria); Set<DefaultersInfo> generateDueNoticeData(DueSearchCriteria dueCriteria); List<Notice> getNotices(NoticeCriteria noticeCriteria); List<DefaultersInfo> getDefaulterDetails(DueNotice noticeData); }
NoticeRepository { public List<Notice> getNotices(NoticeCriteria noticeCriteria) { List<Notice> notices = null; Map<String, Object> params = new HashMap<>(); String queryString = NoticeQueryBuilder.getNoticeQuery(noticeCriteria, params); try { notices = namedParameterJdbcTemplate.query(queryString, params, new NoticeRowMapper()); } catch (DataAccessException e) { LOGGER.info("the exception from notice repo query :: " + e); throw new RuntimeException(e.getMessage()); } return notices; }  Notice createNotice(NoticeRequest noticeRequest); DueNotice createDueNotice(DueNoticeRequest noticeRequest); List<DueNotice> getAllDueNoticesByAgreement(DueNoticeCriteria noticeCriteria); Set<DefaultersInfo> generateDueNoticeData(DueSearchCriteria dueCriteria); List<Notice> getNotices(NoticeCriteria noticeCriteria); List<DefaultersInfo> getDefaulterDetails(DueNotice noticeData); static final Logger LOGGER; }