Changeset 5100
- Timestamp:
- 04/30/14 08:20:14 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/vlo-importer/src/test/java/eu/clarin/cmdi/vlo/importer/ImporterTestcase.java
r5099 r5100 18 18 19 19 @Rule 20 public TemporaryFolder folder = new TemporaryFolder(); 21 private File testDir; 20 public TemporaryFolder tempFolder = new TemporaryFolder(); 22 21 23 22 protected File createCmdiFile(String name, String content) throws IOException { 24 File file = File.createTempFile(name, ".cmdi", testDir);23 File file = tempFolder.newFile(name + System.currentTimeMillis() + ".cmdi"); 25 24 FileUtils.writeStringToFile(file, content, "UTF-8"); 26 25 return file; … … 34 33 @Before 35 34 public void setup() throws Exception { 36 testDir = folder.newFolder(String.format("vlo_%s_%d", getClass().getCanonicalName(), System.currentTimeMillis()));37 38 35 // read the configuration defined in the packaged configuration file 39 36 MetadataImporter.config = configFactory.newConfig();
Note: See TracChangeset
for help on using the changeset viewer.