Skip to content

Commit

Permalink
pom and OMEZarrWriterTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
tischi committed May 14, 2024
2 parents 16a5cb2 + f84ea50 commit 798f7ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@
<n5.version>3.2.0</n5.version>
<n5-google-cloud.version>4.1.0</n5-google-cloud.version>
<n5-zarr.version>1.3.1</n5-zarr.version>
<n5-hdf5.version>2.2.0</n5-hdf5.version>
<n5-ij.version>4.1.1</n5-ij.version>
<n5-universe.version>1.4.1</n5-universe.version>
<n5-imglib2.version>5.0.0</n5-imglib2.version>
<n5-universe.version>1.4.3</n5-universe.version>
<n5-aws-s3.version>4.1.1</n5-aws-s3.version>
<bigdataviewer-core.version>10.4.13</bigdataviewer-core.version>
<bigdataviewer-vistools.version>1.0.0-beta-34</bigdataviewer-vistools.version>
Expand Down
10 changes: 7 additions & 3 deletions src/test/java/org/embl/mobie/io/OMEZarrWriterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@
import ij.ImagePlus;
import org.embl.mobie.io.imagedata.ImageData;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;

import java.nio.file.Path;

import static org.junit.jupiter.api.Assertions.*;

class OMEZarrWriterTest
{
@Test
public void writeAndReadOMEZarr()
public void writeAndReadOMEZarr(@TempDir Path tempDir)
{
ImagePlus imp = IJ.createImage( "test", "8-bit ramp", 186, 226, 27 );

String uri = "src/test/tmp/test.zarr/image";
String uri = tempDir.resolve("test.zarr").toString();

OMEZarrWriter.write( imp,
uri,
OMEZarrWriter.ImageType.Intensities,
true );
false );

ImageData< ? > imageData = ImageDataOpener.open( uri );

Expand Down

0 comments on commit 798f7ee

Please sign in to comment.