Changeset 11995 in josm for trunk/test


Ignore:
Timestamp:
2017-04-24T21:16:45+02:00 (2 years ago)
Author:
Don-vip
Message:

fix #14690 - Loading commandline file blocks JOSM (regression from r11986)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/MainTest.java

    r11988 r11995  
    1212import java.util.Collection;
    1313import java.util.List;
     14import java.util.concurrent.ExecutionException;
     15import java.util.concurrent.Future;
    1416
    1517import javax.swing.UIManager;
     
    100102    private static void doTestPostConstructorProcessCmdLine(String download, String downloadGps, boolean gpx) {
    101103        assertNull(Main.getLayerManager().getEditDataSet());
    102         Main.postConstructorProcessCmdLine(new ProgramArguments(new String[]{
     104        for (Future<?> f : Main.postConstructorProcessCmdLine(new ProgramArguments(new String[]{
    103105                "--download=" + download,
    104106                "--downloadgps=" + downloadGps,
    105                 "--selection=type: node"}));
     107                "--selection=type: node"}))) {
     108            try {
     109                f.get();
     110            } catch (InterruptedException | ExecutionException e) {
     111                Main.error(e);
     112            }
     113        }
    106114        DataSet ds = Main.getLayerManager().getEditDataSet();
    107115        assertNotNull(ds);
Note: See TracChangeset for help on using the changeset viewer.