Skip to content

Commit

Permalink
fix: Fix test errors caused by adding more affiliations in test data
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPalafox committed Aug 16, 2023
1 parent 1bd3e00 commit 605bd3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void testFindDisambuguatedOrgsWithIncorrectPopularity() {
assertEquals(1, results.size());
Pair<Long, Integer> pair = results.get(0);
assertEquals(1, pair.getLeft().longValue());
assertEquals(48, pair.getRight().intValue());
assertEquals(50, pair.getRight().intValue());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void testfindById() {
public void testFindAll() {
List<ProfileEntity> all = profileDao.getAll();
assertNotNull(all);
assertEquals(22, all.size());
assertEquals(23, all.size());
Long count = profileDao.countAll();
assertEquals(Long.valueOf(22), count);
}
Expand All @@ -127,7 +127,7 @@ public void testInsert() throws DataSetException {
assertEquals(profile.getDateCreated(), profile.getLastModified());

Long count = profileDao.countAll();
assertEquals(Long.valueOf(23), count);
assertEquals(Long.valueOf(24), count);
profile = profileDao.find(newOrcid);

assertNotNull(profile);
Expand All @@ -151,7 +151,7 @@ public void testInsertWithPrimaryInstitutions() throws DataSetException {
assertNotNull(profile.getLastModified());

Long count = profileDao.countAll();
assertEquals(Long.valueOf(23), count);
assertEquals(Long.valueOf(24), count);
profile = profileDao.find(newOrcid);

assertNotNull(profile);
Expand All @@ -177,7 +177,7 @@ public void testInsertWithInstitutionDepartments() throws DataSetException {
assertNotNull(retrievedProfile.getLastModified());

Long count = profileDao.countAll();
assertEquals(Long.valueOf(23), count);
assertEquals(Long.valueOf(24), count);
}

@Test
Expand Down Expand Up @@ -278,7 +278,7 @@ public void testUpdateIndexingStatus() {
public void testGetConfirmedProfileCount() {
String orcid = "4444-4444-4444-4446";
Long confirmedProfileCount = profileDao.getConfirmedProfileCount();
assertEquals(Long.valueOf(22), confirmedProfileCount);
assertEquals(Long.valueOf(23), confirmedProfileCount);
ProfileEntity profileEntity = profileDao.find(orcid);
profileEntity.setCompletedDate(null);
profileDao.persist(profileEntity);
Expand Down

0 comments on commit 605bd3f

Please sign in to comment.