Skip to content

Commit

Permalink
Merge branch 'master' into IBP-3389-GeolocationReengineeringSpike
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/main/java/org/generationcp/middleware/dao/dms/GeolocationPropertyDao.java
#	src/main/java/org/generationcp/middleware/manager/StudyDataManagerImpl.java
#	src/test/java/org/generationcp/middleware/dao/dms/GeolocationPropertyDaoTest.java
  • Loading branch information
darla-leafnode committed Jan 21, 2020
2 parents 297f76b + 96d35fe commit 5600656
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,22 +210,6 @@ public void testSearchStudiesForName() throws Exception {
}
}

@Test
public void testGetInstanceIdLocationIdMap() throws Exception {
final StudyReference newStudy = this.studyTDI.addTestStudy();
final Integer studyId = newStudy.getId();
this.studyTDI.addTestDataset(studyId, DatasetTypeEnum.PLOT_DATA.getId());
final Random random = new Random();
final String locationId = String.valueOf(random.nextInt());
final String season = String.valueOf(random.nextInt());
this.studyTDI.createEnvironmentDataset(this.crop, studyId, locationId, season);

this.manager.getActiveSession().flush();

final Map<Integer, String> instanceIdLocationIdMap = this.manager.getInstanceIdLocationIdMap(Arrays.asList(this.studyTDI.getGeolocationId()));
Assert.assertEquals(locationId, instanceIdLocationIdMap.get(this.studyTDI.getGeolocationId()));
}

@Test
public void testSearchStudiesForStartDate() throws Exception {
// Study search query expect datasets for studies to be returned
Expand Down

0 comments on commit 5600656

Please sign in to comment.