Skip to content

Commit

Permalink
Update some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tischi committed May 14, 2024
1 parent 905111c commit 89ed315
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@
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;

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

Expand All @@ -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" );
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@
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;

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

Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit 89ed315

Please sign in to comment.