Commit 8e159f7b authored by rhaase's avatar rhaase
Browse files

adapted all tests to work better on windows (test image files were not properly loaded)

parent 1327589d
......@@ -24,9 +24,7 @@ public class BuildSkeletonTest {
ImageJ.main( new String[1] );
System.out.println("hello 2");
ImagePlus imp = IJ.openImage(
AnalyzeSkeleton_.class.getResource(
"/skelRaw.tif").getFile() );
ImagePlus imp = IJ.openImage("src/test/resources/skelRaw.tif");
System.out.println("hello 3");
imp.show();
AnalyzeSkeleton_ skel = new AnalyzeSkeleton_();
......
......@@ -25,9 +25,7 @@ public class LoopTest {
public void initialize() {
ImageJ.main(new String[1]);
target = IJ.openImage(
AnalyzeSkeleton_.class.getResource(
"/loopExample.tif").getFile());
target = IJ.openImage("src/test/resources/loopExample.tif");
target.show();
AnalyzeSkeleton_ skel = new AnalyzeSkeleton_();
......@@ -69,6 +67,6 @@ public class LoopTest {
PathDrawer.drawAllPathsToLargestJunction(skeletonAnalyser, target, Color.red);
new WaitForUserDialog("huh").show();
//new WaitForUserDialog("huh").show();
}
}
......@@ -29,9 +29,7 @@ public class PruningTest {
{
ImageJ.main( new String[1] );
target = IJ.openImage(
AnalyzeSkeleton_.class.getResource(
"/manyShortEdgesExample.tif").getFile() );
target = IJ.openImage("src/test/resources/manyShortEdgesExample.tif" );
target.show();
AnalyzeSkeleton_ skel = new AnalyzeSkeleton_();
......@@ -56,7 +54,7 @@ public class PruningTest {
assertTrue(newMinmumLength <= minimumLengthConstraint);
new WaitForUserDialog("Holla die Waldfee").show();
//new WaitForUserDialog("Holla die Waldfee").show();
}
......
......@@ -27,9 +27,7 @@ public class SkeletonAnalyserTest {
// ---------------------------------
// load images
ImagePlus skeletonImage = IJ.openImage(
AnalyzeSkeleton_.class.getResource(
"/skelRaw.tif").getFile() );
ImagePlus skeletonImage = IJ.openImage("src/test/resources/skelRaw.tif");
skeletonImage.show();
ImagePlus greyValueImage = IJ.openImage(
......
......@@ -26,9 +26,7 @@ public class SlabOrderTest {
{
ImageJ.main( new String[1] );
target = IJ.openImage(
AnalyzeSkeleton_.class.getResource(
"/manyShortEdgesExample.tif").getFile() );
target = IJ.openImage("src/test/resources/manyShortEdgesExample.tif" );
target.show();
AnalyzeSkeleton_ skel = new AnalyzeSkeleton_();
......
......@@ -24,9 +24,7 @@ public class VerySimpleTest {
{
ImageJ.main( new String[1] );
target = IJ.openImage(
AnalyzeSkeleton_.class.getResource(
"/verysimple.tif").getFile() );
target = IJ.openImage("src/test/resources/verysimple.tif");
target.show();
AnalyzeSkeleton_ skel = new AnalyzeSkeleton_();
......@@ -38,7 +36,7 @@ public class VerySimpleTest {
drawEdge(edge);
}
new WaitForUserDialog("bla").show();
//new WaitForUserDialog("bla").show();
}
private void drawEdge(Edge edge)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment