diff --git a/src/test/java/org/embl/mobie/command/open/OpenIlastik2DImageAndSegmentationCommandTest.java b/src/test/java/org/embl/mobie/command/open/OpenIlastik2DImageAndSegmentationCommandTest.java index 29164ec8..70f482ab 100644 --- a/src/test/java/org/embl/mobie/command/open/OpenIlastik2DImageAndSegmentationCommandTest.java +++ b/src/test/java/org/embl/mobie/command/open/OpenIlastik2DImageAndSegmentationCommandTest.java @@ -31,6 +31,7 @@ import net.imagej.ImageJ; import org.embl.mobie.MoBIE; import org.embl.mobie.command.open.OpenImageAndLabelsCommand; +import org.junit.jupiter.api.Test; import java.io.File; @@ -38,7 +39,8 @@ public class OpenIlastik2DImageAndSegmentationCommandTest { static { net.imagej.patcher.LegacyInjector.preinit(); } - public static void main( String[] args ) + @Test + public void test( ) { new ImageJ().ui().showUI(); // initialise SciJava Services @@ -47,8 +49,5 @@ public static void main( String[] args ) command.labels = new File( "src/test/resources/input/ilastik-2d/labels.h5" ); command.table = new File( "src/test/resources/input/ilastik-2d/table.csv" ); command.run(); - - //final MoBIE moBIE = MoBIE.getInstance(); - //moBIE.getViewManager().show( "labels" ); } } diff --git a/src/test/java/org/embl/mobie/command/open/OpenIlastikImagesAndSegmentationsCommandTest.java b/src/test/java/org/embl/mobie/command/open/OpenIlastikImagesAndSegmentationsCommandTest.java index 9b76392e..8ecc608d 100644 --- a/src/test/java/org/embl/mobie/command/open/OpenIlastikImagesAndSegmentationsCommandTest.java +++ b/src/test/java/org/embl/mobie/command/open/OpenIlastikImagesAndSegmentationsCommandTest.java @@ -31,6 +31,7 @@ import net.imagej.ImageJ; import org.embl.mobie.command.open.OpenImageAndLabelsCommand; import org.embl.mobie.command.open.OpenMultipleImagesAndLabelsCommand; +import org.junit.jupiter.api.Test; import java.io.File; @@ -38,7 +39,8 @@ public class OpenIlastikImagesAndSegmentationsCommandTest { static { net.imagej.patcher.LegacyInjector.preinit(); } - public static void main( String[] args ) + @Test + public void test( ) { new ImageJ().ui().showUI(); // initialise SciJava Services diff --git a/src/test/java/org/embl/mobie/command/open/OpenOMEZarrHCSDatasetCommandTest.java b/src/test/java/org/embl/mobie/command/open/OpenOMEZarrHCSDatasetCommandTest.java index 966f835f..8cfcf796 100644 --- a/src/test/java/org/embl/mobie/command/open/OpenOMEZarrHCSDatasetCommandTest.java +++ b/src/test/java/org/embl/mobie/command/open/OpenOMEZarrHCSDatasetCommandTest.java @@ -1,12 +1,14 @@ package org.embl.mobie.command.open; import net.imagej.ImageJ; +import org.junit.jupiter.api.Test; class OpenOMEZarrHCSDatasetCommandTest { static { net.imagej.patcher.LegacyInjector.preinit(); } - public static void main( String[] args ) + @Test + public void test( ) { new ImageJ().ui().showUI(); // initialise SciJava Services diff --git a/src/test/java/org/embl/mobie/command/open/project/OpenMoBIEProjectCommandTest.java b/src/test/java/org/embl/mobie/command/open/project/OpenMoBIEProjectCommandTest.java new file mode 100644 index 00000000..5156d706 --- /dev/null +++ b/src/test/java/org/embl/mobie/command/open/project/OpenMoBIEProjectCommandTest.java @@ -0,0 +1,20 @@ +package org.embl.mobie.command.open.project; + +import net.imagej.ImageJ; +import org.embl.mobie.command.open.OpenMultipleImagesAndLabelsCommand; + +import java.io.File; + +import static org.junit.jupiter.api.Assertions.*; + +class OpenMoBIEProjectCommandTest +{ + static { net.imagej.patcher.LegacyInjector.preinit(); } + + public static void main( String[] args ) + { + new ImageJ().ui().showUI(); // initialise SciJava Services + final OpenPlatyBrowserCommand command = new OpenPlatyBrowserCommand(); + command.run(); + } +} \ No newline at end of file