Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static org.junit.Assert.*;

import java.io.IOException;
import java.nio.file.Files;
import java.util.Optional;

import org.janelia.saalfeldlab.n5.N5FSWriter;
Expand Down Expand Up @@ -31,7 +32,14 @@

public class N5SourceFromMetadataTest {

static private String testDirPath = System.getProperty("user.home") + "/tmp/n5-test";
private static String testDirPath = createTestDirPath("n5-test");
private static String createTestDirPath(String dirName) {
try {
return Files.createTempDirectory(dirName).toString();
} catch (IOException exc) {
return System.getProperty("user.home") + "/tmp/" + dirName;
}
}
static private String testBaseDatasetName = "/test/bdvSourceMetadata";

private N5FSWriter n5;
Expand Down