From 7d3eebad2b13cbf3877aef3e0eae51e554e07016 Mon Sep 17 00:00:00 2001 From: mchrza Date: Fri, 17 Nov 2023 20:11:16 +0100 Subject: [PATCH] Check empty superExportObjects. Signed-off-by: Maximilian Chrzan Signed-off-by: mchrza --- .../com/here/xyz/hub/rest/jobs/ReadOnlyPersistExportIT.java | 3 +++ 1 file changed, 3 insertions(+) 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