diff options
Diffstat (limited to 'tests/src/cgeo/geocaching/export/ExportTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/export/ExportTest.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/src/cgeo/geocaching/export/ExportTest.java b/tests/src/cgeo/geocaching/export/ExportTest.java index 7befacf..60d5716 100644 --- a/tests/src/cgeo/geocaching/export/ExportTest.java +++ b/tests/src/cgeo/geocaching/export/ExportTest.java @@ -57,10 +57,12 @@ public class ExportTest extends CGeoTestCase { } public File testExportSync(List<Geocache> caches) throws InterruptedException, ExecutionException { - ExportTask task = new ExportTask(caches, null); - - task.execute((Void) null); - + final ArrayList<String> geocodes = new ArrayList<String>(caches.size()); + for (final Geocache cache: caches) { + geocodes.add(cache.getGeocode()); + } + final ExportTask task = new ExportTask(null); + task.execute(geocodes.toArray(new String[geocodes.size()])); return task.get(); } |
