Skip to content

Commit

Permalink
updated function call in disabled tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zack-rma committed Sep 30, 2024
1 parent dacc6fb commit a8b81d1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void testStore() throws Exception
locationsDao.storeLocation(location);
LocationLevelsDao levelsDao = new LocationLevelsDaoImpl(getDslContext(getConnection(), OFFICE_ID));
levelsDao.storeLocationLevel(levelToStore);
LocationLevel retrievedLevel = levelsDao.retrieveLocationLevel(levelToStore.getLocationLevelId(), UnitSystem.EN.getValue(), levelToStore.getLevelDate(), "LRL");
LocationLevel retrievedLevel = levelsDao.retrieveLocationLevel(levelToStore.getLocationLevelId(), UnitSystem.EN.getValue(), levelToStore.getLevelDate(), "LRL", null, null);
assertNotNull(retrievedLevel);
assertEquals(levelToStore.getLocationLevelId(), retrievedLevel.getLocationLevelId());
assertEquals(levelToStore.getLevelDate(), retrievedLevel.getLevelDate());
Expand All @@ -92,10 +92,10 @@ void testDeleteLocationLevel() throws Exception
Location location = buildTestLocation("TEST_LOC5");
locationsDao.storeLocation(location);
levelsDao.storeLocationLevel(levelToStore);
LocationLevel retrievedLevel = levelsDao.retrieveLocationLevel(levelToStore.getLocationLevelId(), UnitSystem.EN.getValue(), levelToStore.getLevelDate(), OFFICE_ID);
LocationLevel retrievedLevel = levelsDao.retrieveLocationLevel(levelToStore.getLocationLevelId(), UnitSystem.EN.getValue(), levelToStore.getLevelDate(), OFFICE_ID, null, null);
assertNotNull(retrievedLevel);
levelsDao.deleteLocationLevel(levelToStore.getLocationLevelId(), levelToStore.getLevelDate(), OFFICE_ID, true);
assertThrows(IOException.class, () -> levelsDao.retrieveLocationLevel(levelToStore.getLocationLevelId(), UnitSystem.EN.getValue(), levelToStore.getLevelDate(), OFFICE_ID));
assertThrows(IOException.class, () -> levelsDao.retrieveLocationLevel(levelToStore.getLocationLevelId(), UnitSystem.EN.getValue(), levelToStore.getLevelDate(), OFFICE_ID, null, null));
}

@Disabled
Expand All @@ -114,7 +114,7 @@ void testUpdate() throws Exception
String format = Formats.JSON;

LocationLevel levelFromBody = deserializeLocationLevel(body, Formats.JSON, OFFICE_ID);
existingLocationLevel = levelsDao.retrieveLocationLevel(levelToStore.getLocationLevelId(), UnitSystem.EN.getValue(), levelFromBody.getLevelDate(), OFFICE_ID);
existingLocationLevel = levelsDao.retrieveLocationLevel(levelToStore.getLocationLevelId(), UnitSystem.EN.getValue(), levelFromBody.getLevelDate(), OFFICE_ID, null, null);
existingLocationLevel = updatedClearedFields(body, format, existingLocationLevel);
//only store (update) if level does exist
updatedLocationLevel = getUpdatedLocationLevel(existingLocationLevel, levelFromBody);
Expand All @@ -125,7 +125,7 @@ void testUpdate() throws Exception
} else {
levelsDao.storeLocationLevel(updatedLocationLevel);
}
LocationLevel retrievedLevel = levelsDao.retrieveLocationLevel(updatedLocationLevel.getLocationLevelId(), UnitSystem.EN.getValue(), updatedLocationLevel.getLevelDate(), OFFICE_ID);
LocationLevel retrievedLevel = levelsDao.retrieveLocationLevel(updatedLocationLevel.getLocationLevelId(), UnitSystem.EN.getValue(), updatedLocationLevel.getLevelDate(), OFFICE_ID, null, null);
assertNotNull(retrievedLevel);
}
finally {
Expand Down

0 comments on commit a8b81d1

Please sign in to comment.