Skip to content

Commit

Permalink
Add legacy injector in more places...
Browse files Browse the repository at this point in the history
  • Loading branch information
tischi committed May 15, 2024
1 parent 9292833 commit 2413fba
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 8 deletions.
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

<groupId>org.embl.mobie</groupId>
<artifactId>mobie-viewer-fiji</artifactId>
<version>5.0.0</version>

<version>5.0.0-SNAPSHOT</version>

<!-- force javadoc generation to fetch errors: -->
<!-- mvn javadoc:javadoc | grep error -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
*/
public class ProjectCreator {

static { LegacyInjector.preinit(); }
static { net.imagej.patcher.LegacyInjector.preinit(); }

private final File projectLocation;
private final File projectJson;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/embl/mobie/lib/hcs/HCSPattern.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public enum HCSPattern
MolecularDevices,
YokogawaCQ1;

static { net.imagej.patcher.LegacyInjector.preinit(); }

public static final String WELL = "W";
public static final String SITE = "S";
public static final String CHANNEL = "C";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class OpenIlastik2DImageAndSegmentationCommandTest
{
static { net.imagej.patcher.LegacyInjector.preinit(); }

@Test
//@Test
public void test( )
{
new ImageJ().ui().showUI(); // initialise SciJava Services
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class OpenIlastikImagesAndSegmentationsCommandTest
{
static { net.imagej.patcher.LegacyInjector.preinit(); }

@Test
//@Test
public void test( )
{
new ImageJ().ui().showUI(); // initialise SciJava Services
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class OpenOMEZarrHCSDatasetCommandTest
{
static { net.imagej.patcher.LegacyInjector.preinit(); }

@Test
//@Test
public void test( )
{
new ImageJ().ui().showUI(); // initialise SciJava Services
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class OpenOMEZARRFromS3CommandTest
{
@Test
//@Test
public void test( )
{
OpenOMEZARRFromS3Command command = new OpenOMEZARRFromS3Command();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class OpenMoBIEProjectCommandTest
{
static { net.imagej.patcher.LegacyInjector.preinit(); }

@Test
//@Test
public void test( )
{
new ImageJ().ui().showUI(); // initialise SciJava Services
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@

class DatasetsCreatorTest {

static { net.imagej.patcher.LegacyInjector.preinit(); }

private ProjectCreator projectCreator;
private DatasetsCreator datasetsCreator;

Expand Down
2 changes: 2 additions & 0 deletions src/test/java/org/embl/mobie/lib/create/JSONValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@

public class JSONValidator
{
static { net.imagej.patcher.LegacyInjector.preinit(); }

public static String datasetSchemaURL = "https://raw.githubusercontent.com/mobie/mobie.github.io/master/schema/dataset.schema.json";
public static String projectSchemaURL = "https://raw.githubusercontent.com/mobie/mobie.github.io/master/schema/project.schema.json";
public static String viewSchemaURL = "https://raw.githubusercontent.com/mobie/mobie.github.io/master/schema/view.schema.json";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@

class RemoteMetadataCreatorTest {

static { net.imagej.patcher.LegacyInjector.preinit(); }

private ProjectCreator projectCreator;
private RemoteMetadataCreator remoteMetadataCreator;
private String datasetName;
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/org/embl/mobie/lib/hcs/HCSPatternTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

class HCSPatternTest
{
static { net.imagej.patcher.LegacyInjector.preinit(); }

private static String operetta = "r01c01f04p01-ch1sk1fk1fl1.tiff";
private static String incucyte = "MiaPaCa2-PhaseOriginal_A2_1_03d06h40m.tif";
private static String moldev = "MIP-2P-2sub_C05_s1_w146C9B2CD-0BB3-4B8A-9187-2805F4C90506.tif";
Expand Down

0 comments on commit 2413fba

Please sign in to comment.