Changeset 13024 in josm


Ignore:
Timestamp:
2017-10-18T20:41:21+02:00 (8 weeks ago)
Author:
bastiK
Message:

fix unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/AutosaveTaskTest.java

    r12636 r13024  
    1313import java.nio.charset.StandardCharsets;
    1414import java.nio.file.Files;
     15import java.nio.file.Path;
    1516import java.nio.file.Paths;
    1617import java.time.ZoneId;
     
    7778        assertTrue(files.contains(layer2));
    7879        assertFalse(files.contains(dir));
     80        // cleanup
     81        layer1.delete();
     82        layer2.delete();
     83        dir.delete();
    7984    }
    8085
     
    109114            }
    110115        }
     116        // cleanup
     117        for (Path entry : Files.newDirectoryStream(task.getAutosaveDir(), "*.{osm,pid}")) {
     118            Files.delete(entry);
     119        }
    111120    }
    112121
Note: See TracChangeset for help on using the changeset viewer.