Skip to content

Commit

Permalink
Check empty superExportObjects.
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Chrzan <[email protected]>
Signed-off-by: mchrza <[email protected]>
  • Loading branch information
mchrza committed Nov 20, 2023
1 parent 91209ea commit 7d3eeba
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,19 @@ public void testFullReadOnlyWKBExport() throws Exception {

List<URL> 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<URL> 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
Expand Down

0 comments on commit 7d3eeba

Please sign in to comment.