Skip to content

Commit

Permalink
fix: macro test uris
Browse files Browse the repository at this point in the history
  • Loading branch information
bogovicj committed May 28, 2024
1 parent 2874365 commit 1c9bf3a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/test/java/org/janelia/saalfeldlab/n5/ij/MacroTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void testMacroContentHelper( String urlFormat ) throws IOException {
public void testMacro() {

final N5Importer plugin = (N5Importer)IJ.runPlugIn("org.janelia.saalfeldlab.n5.ij.N5Importer",
String.format("url=%s" + File.separator + "%s hide", n5rootF.toString(), "cosem" ));
"url=" + n5rootF.resolve("cosem").toString() + " hide");

final List<ImagePlus> res = plugin.getResult();
assertEquals("crop num", 1, res.size());
Expand All @@ -141,7 +141,7 @@ public void testMacro() {
public void testMacroVirtual() {

final N5Importer plugin = (N5Importer)IJ.runPlugIn("org.janelia.saalfeldlab.n5.ij.N5Importer",
String.format("url=%s" + File.separator + "%s hide virtual", n5rootF.toString(), "cosem" ));
"url=" + n5rootF.resolve("cosem").toString() + " hide virtual");

final List<ImagePlus> res = plugin.getResult();
assertEquals("crop num", 1, res.size());
Expand All @@ -155,8 +155,9 @@ public void testMacroCrop() {
final String minString = "100,100,50";
final String maxString = "250,250,120";
final N5Importer plugin = (N5Importer)IJ.runPlugIn("org.janelia.saalfeldlab.n5.ij.N5Importer",
String.format("url=%s" + File.separator + "%s hide min=%s max=%s",
n5rootF.toString(), "cosem", minString, maxString ));
String.format("url=%s hide min=%s max=%s",
n5rootF.resolve("cosem").toString(),
minString, maxString));

final List<ImagePlus> res = plugin.getResult();
assertEquals(" crop num", 1, res.size());
Expand Down

0 comments on commit 1c9bf3a

Please sign in to comment.