Skip to content

Commit

Permalink
test/wip: MetadataTests use BeforeClass
Browse files Browse the repository at this point in the history
  • Loading branch information
bogovicj committed Sep 24, 2024
1 parent 6fc4c66 commit 3e9be02
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.janelia.saalfeldlab.n5.universe.metadata.SpatialMetadata;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import java.io.File;
Expand All @@ -30,20 +31,18 @@

public class MetadataTests {

N5FSReader n5;
private static N5FSReader n5;

@Before
public void setUp() throws IOException {
@BeforeClass
public static void setUp() throws IOException {

final String n5Root = "src/test/resources/test.n5";
File n5rootF = new File(n5Root);
n5 = new N5FSReader(n5Root);
}

@Test
public void testCosemMetadataMultiscale() {

final double eps = 1e-6;
final N5MetadataParser<?>[] parsers = new N5MetadataParser[]{new N5CosemMetadataParser()};
final N5MetadataParser<?>[] grpparsers = new N5MetadataParser[]{new N5CosemMultiScaleMetadata.CosemMultiScaleParser()};

Expand Down

0 comments on commit 3e9be02

Please sign in to comment.