@Test public void testUpdate() { when(jdbcTemplate.update(any(String.class), Matchers.<Object[]>any())).thenReturn(Integer.valueOf("2")); marryingPersonRepository.update(getMarryingPerson(), "ap.kurool"); }
public void update(MarryingPerson marryingPerson, String tenantId) { Object[] obj = new Object[] { marryingPerson.getName(), marryingPerson.getParentName(), marryingPerson.getStreet(), marryingPerson.getLocality(), marryingPerson.getCity(), marryingPerson.getDob(), marryingPerson.getStatus().toString(), marryingPerson.getAadhaar(), marryingPerson.getMobileNo(), marryingPerson.getEmail(), marryingPerson.getReligion(), marryingPerson.getReligionPractice(), marryingPerson.getEducation(), marryingPerson.getOccupation(), marryingPerson.getHandicapped(), marryingPerson.getResidenceAddress(), marryingPerson.getPhoto(), marryingPerson.getNationality(), marryingPerson.getOfficeAddress(), marryingPerson.getId(), tenantId }; jdbcTemplate.update(UPDATE_MARRYING_PERSON_QUERY, obj); }
MarryingPersonRepository { public void update(MarryingPerson marryingPerson, String tenantId) { Object[] obj = new Object[] { marryingPerson.getName(), marryingPerson.getParentName(), marryingPerson.getStreet(), marryingPerson.getLocality(), marryingPerson.getCity(), marryingPerson.getDob(), marryingPerson.getStatus().toString(), marryingPerson.getAadhaar(), marryingPerson.getMobileNo(), marryingPerson.getEmail(), marryingPerson.getReligion(), marryingPerson.getReligionPractice(), marryingPerson.getEducation(), marryingPerson.getOccupation(), marryingPerson.getHandicapped(), marryingPerson.getResidenceAddress(), marryingPerson.getPhoto(), marryingPerson.getNationality(), marryingPerson.getOfficeAddress(), marryingPerson.getId(), tenantId }; jdbcTemplate.update(UPDATE_MARRYING_PERSON_QUERY, obj); } }
MarryingPersonRepository { public void update(MarryingPerson marryingPerson, String tenantId) { Object[] obj = new Object[] { marryingPerson.getName(), marryingPerson.getParentName(), marryingPerson.getStreet(), marryingPerson.getLocality(), marryingPerson.getCity(), marryingPerson.getDob(), marryingPerson.getStatus().toString(), marryingPerson.getAadhaar(), marryingPerson.getMobileNo(), marryingPerson.getEmail(), marryingPerson.getReligion(), marryingPerson.getReligionPractice(), marryingPerson.getEducation(), marryingPerson.getOccupation(), marryingPerson.getHandicapped(), marryingPerson.getResidenceAddress(), marryingPerson.getPhoto(), marryingPerson.getNationality(), marryingPerson.getOfficeAddress(), marryingPerson.getId(), tenantId }; jdbcTemplate.update(UPDATE_MARRYING_PERSON_QUERY, obj); }  }
MarryingPersonRepository { public void update(MarryingPerson marryingPerson, String tenantId) { Object[] obj = new Object[] { marryingPerson.getName(), marryingPerson.getParentName(), marryingPerson.getStreet(), marryingPerson.getLocality(), marryingPerson.getCity(), marryingPerson.getDob(), marryingPerson.getStatus().toString(), marryingPerson.getAadhaar(), marryingPerson.getMobileNo(), marryingPerson.getEmail(), marryingPerson.getReligion(), marryingPerson.getReligionPractice(), marryingPerson.getEducation(), marryingPerson.getOccupation(), marryingPerson.getHandicapped(), marryingPerson.getResidenceAddress(), marryingPerson.getPhoto(), marryingPerson.getNationality(), marryingPerson.getOfficeAddress(), marryingPerson.getId(), tenantId }; jdbcTemplate.update(UPDATE_MARRYING_PERSON_QUERY, obj); }  void save(MarryingPerson marryingPerson, String tenantId); void update(MarryingPerson marryingPerson, String tenantId); }
MarryingPersonRepository { public void update(MarryingPerson marryingPerson, String tenantId) { Object[] obj = new Object[] { marryingPerson.getName(), marryingPerson.getParentName(), marryingPerson.getStreet(), marryingPerson.getLocality(), marryingPerson.getCity(), marryingPerson.getDob(), marryingPerson.getStatus().toString(), marryingPerson.getAadhaar(), marryingPerson.getMobileNo(), marryingPerson.getEmail(), marryingPerson.getReligion(), marryingPerson.getReligionPractice(), marryingPerson.getEducation(), marryingPerson.getOccupation(), marryingPerson.getHandicapped(), marryingPerson.getResidenceAddress(), marryingPerson.getPhoto(), marryingPerson.getNationality(), marryingPerson.getOfficeAddress(), marryingPerson.getId(), tenantId }; jdbcTemplate.update(UPDATE_MARRYING_PERSON_QUERY, obj); }  void save(MarryingPerson marryingPerson, String tenantId); void update(MarryingPerson marryingPerson, String tenantId); static final String INSERT_MARRYING_PERSON_QUERY; static final String UPDATE_MARRYING_PERSON_QUERY; }