@Test public void testNextIdValueForRegistrationUnit() { RegistrationUnit registrationUnit = getRegistrationUnit(); when(registrationUnitQueryBuilder.getIdNextValForRegnUnit()).thenReturn(getQueryGenerator()); when(jdbcTemplate.queryForObject(Matchers.anyString(), Matchers.<Class<Long>>any())) .thenReturn(Long.valueOf("6")); registrationUnitRepository.getIdNextVal(); }
public Long getIdNextVal() { return jdbcTemplate.queryForObject(registrationUnitQueryBuilder.getIdNextValForRegnUnit(), Long.class); }
RegistrationUnitRepository { public Long getIdNextVal() { return jdbcTemplate.queryForObject(registrationUnitQueryBuilder.getIdNextValForRegnUnit(), Long.class); } }
RegistrationUnitRepository { public Long getIdNextVal() { return jdbcTemplate.queryForObject(registrationUnitQueryBuilder.getIdNextValForRegnUnit(), Long.class); }  }
RegistrationUnitRepository { public Long getIdNextVal() { return jdbcTemplate.queryForObject(registrationUnitQueryBuilder.getIdNextValForRegnUnit(), Long.class); }  void create(RegistrationUnit registrationUnit); List<RegistrationUnit> search(RegistrationUnitSearchCriteria regnUnitSearchCriteria); void update(RegistrationUnit registrationUnit); Long getIdNextVal(); Boolean checkIdsAndTenantIdsFromDB(RegistrationUnit registrationUnit); }
RegistrationUnitRepository { public Long getIdNextVal() { return jdbcTemplate.queryForObject(registrationUnitQueryBuilder.getIdNextValForRegnUnit(), Long.class); }  void create(RegistrationUnit registrationUnit); List<RegistrationUnit> search(RegistrationUnitSearchCriteria regnUnitSearchCriteria); void update(RegistrationUnit registrationUnit); Long getIdNextVal(); Boolean checkIdsAndTenantIdsFromDB(RegistrationUnit registrationUnit);  }