@Test public void testAdd() { Mockito.doNothing().when(chartofAccountDetailQueueRepository).add(Mockito.any()); ChartOfAccountDetailRequest request = new ChartOfAccountDetailRequest(); List<ChartOfAccountDetailContract> coadcs = new ArrayList<>(); coadcs.add(getChartOfAccountDetailContract()); request.setRequestInfo(getRequestInfo()); request.setChartOfAccountDetails(coadcs); chartOfAccountDetailRepository.add(request); Map<String, Object> message = new HashMap<>(); message.put("chartofaccountdetail_create", request); verify(chartofAccountDetailQueueRepository).add(message); }
public void add(ChartOfAccountDetailRequest request) { Map<String, Object> message = new HashMap<>(); if (request.getRequestInfo().getAction().equalsIgnoreCase(Constants.ACTION_CREATE)) { message.put("chartofaccountdetail_create", request); } else { message.put("chartofaccountdetail_update", request); } chartOfAccountDetailQueueRepository.add(message); }
ChartOfAccountDetailRepository { public void add(ChartOfAccountDetailRequest request) { Map<String, Object> message = new HashMap<>(); if (request.getRequestInfo().getAction().equalsIgnoreCase(Constants.ACTION_CREATE)) { message.put("chartofaccountdetail_create", request); } else { message.put("chartofaccountdetail_update", request); } chartOfAccountDetailQueueRepository.add(message); } }
ChartOfAccountDetailRepository { public void add(ChartOfAccountDetailRequest request) { Map<String, Object> message = new HashMap<>(); if (request.getRequestInfo().getAction().equalsIgnoreCase(Constants.ACTION_CREATE)) { message.put("chartofaccountdetail_create", request); } else { message.put("chartofaccountdetail_update", request); } chartOfAccountDetailQueueRepository.add(message); }  }
ChartOfAccountDetailRepository { public void add(ChartOfAccountDetailRequest request) { Map<String, Object> message = new HashMap<>(); if (request.getRequestInfo().getAction().equalsIgnoreCase(Constants.ACTION_CREATE)) { message.put("chartofaccountdetail_create", request); } else { message.put("chartofaccountdetail_update", request); } chartOfAccountDetailQueueRepository.add(message); }  ChartOfAccountDetail findById(ChartOfAccountDetail chartOfAccountDetail); String getNextSequence(); @Transactional ChartOfAccountDetail save(ChartOfAccountDetail chartOfAccountDetail); @Transactional ChartOfAccountDetail update(ChartOfAccountDetail chartOfAccountDetail); void add(ChartOfAccountDetailRequest request); Pagination<ChartOfAccountDetail> search(ChartOfAccountDetailSearch domain); boolean uniqueCheck(String fieldName, ChartOfAccountDetail chartOfAccountDetail); }
ChartOfAccountDetailRepository { public void add(ChartOfAccountDetailRequest request) { Map<String, Object> message = new HashMap<>(); if (request.getRequestInfo().getAction().equalsIgnoreCase(Constants.ACTION_CREATE)) { message.put("chartofaccountdetail_create", request); } else { message.put("chartofaccountdetail_update", request); } chartOfAccountDetailQueueRepository.add(message); }  ChartOfAccountDetail findById(ChartOfAccountDetail chartOfAccountDetail); String getNextSequence(); @Transactional ChartOfAccountDetail save(ChartOfAccountDetail chartOfAccountDetail); @Transactional ChartOfAccountDetail update(ChartOfAccountDetail chartOfAccountDetail); void add(ChartOfAccountDetailRequest request); Pagination<ChartOfAccountDetail> search(ChartOfAccountDetailSearch domain); boolean uniqueCheck(String fieldName, ChartOfAccountDetail chartOfAccountDetail);  }