diff --git a/xyz-hub-test/src/test/java/com/here/xyz/hub/rest/jobs/ReadOnlyPersistExportIT.java b/xyz-hub-test/src/test/java/com/here/xyz/hub/rest/jobs/ReadOnlyPersistExportIT.java index 5d0128310d..69d91bd34c 100644 --- a/xyz-hub-test/src/test/java/com/here/xyz/hub/rest/jobs/ReadOnlyPersistExportIT.java +++ b/xyz-hub-test/src/test/java/com/here/xyz/hub/rest/jobs/ReadOnlyPersistExportIT.java @@ -66,16 +66,19 @@ public void testFullReadOnlyWKBExport() throws Exception { List urls = performExport(job, testSpaceId1 , finalized, failed); assertNotEquals(-1, urls.get(0).toString().indexOf("persistent")); + assertEquals(0,((Export) loadJob(testSpaceId1, job.getId())).getSuperExportObjects().size()); /** Same Export-Config - reuse existing persistent one */ job = buildTestJob(testExportJobId, null, new Export.ExportTarget().withType(DOWNLOAD), Job.CSVFormat.JSON_WKB); List urls2 = performExport(job, testSpaceId1 , finalized, failed); assertEquals(urls.get(0).getPath(), urls2.get(0).getPath()); + assertEquals(0,((Export) loadJob(testSpaceId1, job.getId())).getSuperExportObjects().size()); /** Different Export-Config - need new Export */ job = buildTestJob(testExportJobId, null, new Export.ExportTarget().withType(DOWNLOAD), GEOJSON); urls2 = performExport(job, testSpaceId1 , finalized, failed); assertNotEquals(urls.get(0).getPath(), urls2.get(0).getPath()); + assertEquals(0,((Export) loadJob(testSpaceId1, job.getId())).getSuperExportObjects().size()); } @Test