@Test public void testUpdateWithApplicantRepositoryShouldReturnApplicantThatUpdated() throws Exception { Applicant update = applicantRepository.find(applicant.getId()); update.setFirstNameEN("AnatUpdate"); applicantRepository.update(update); Applicant result = applicantRepository.find(update.getId()); assertNotNull(result); assertThat(result.getId(), is(update.getId())); assertThat(result.getFirstNameEN(), is("AnatUpdate")); }
@Test public void testFindWithApplicantRepositoryShouldReturnSetupApplicant() throws Exception { Applicant result = applicantRepository.find(applicant.getId()); assertNotNull(result); assertThat(result.getFirstNameEN(), is("Anat")); }