Skip to content

Commit 88c158b

Browse files
committed
rename tests
1 parent 96e9cb2 commit 88c158b

6 files changed

Lines changed: 44 additions & 44 deletions

File tree

USERGUIDE-OME-ZARR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Important v1.0 behavior:
2323
- `MultiscaleImage.open(...)` throws if the node is a v1.0 collection root (without `ome.multiscale`)
2424
- Open collection roots via `v1_0.Collection.openCollection(...)` and traverse with `openNode(...)`
2525

26-
## Essential methods for visualization tools
26+
## Essential methods
2727

2828
### MultiscaleImage
2929

src/test/java/dev/zarr/zarrjava/ome/OmeZarrBaseTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ protected StoreHandle storeHandle(Path path) throws Exception {
4343
// ── unified interface contract tests ─────────────────────────────────────
4444

4545
@Test
46-
void open_returnsCorrectConcreteType() throws Exception {
46+
void openReturnsCorrectConcreteType() throws Exception {
4747
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
4848
assertInstanceOf(expectedConcreteClass(), image);
4949
}
5050

5151
@Test
52-
void getMultiscaleNode_hasExpectedAxes() throws Exception {
52+
void getMultiscaleNodeHasExpectedAxes() throws Exception {
5353
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
5454
MultiscalesEntry entry = image.getMultiscaleNode(0);
5555
assertNotNull(entry);
@@ -60,26 +60,26 @@ void getMultiscaleNode_hasExpectedAxes() throws Exception {
6060
}
6161

6262
@Test
63-
void getMultiscaleNode_hasExpectedLevelCount() throws Exception {
63+
void getMultiscaleNodeHasExpectedLevelCount() throws Exception {
6464
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
6565
MultiscalesEntry entry = image.getMultiscaleNode(0);
6666
assertEquals(expectedScaleLevelCount(), entry.datasets.size());
6767
}
6868

6969
@Test
70-
void getAxisNames_returnsExpected() throws Exception {
70+
void getAxisNamesReturnsExpected() throws Exception {
7171
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
7272
assertEquals(expectedAxisNames(), image.getAxisNames());
7373
}
7474

7575
@Test
76-
void getScaleLevelCount_returnsExpected() throws Exception {
76+
void getScaleLevelCountReturnsExpected() throws Exception {
7777
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
7878
assertEquals(expectedScaleLevelCount(), image.getScaleLevelCount());
7979
}
8080

8181
@Test
82-
void openScaleLevel_level0HasExpectedShape() throws Exception {
82+
void openScaleLevelLevel0HasExpectedShape() throws Exception {
8383
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
8484
dev.zarr.zarrjava.core.Array array = image.openScaleLevel(0);
8585
assertArrayEquals(expectedLevel0Shape(), array.metadata().shape);

src/test/java/dev/zarr/zarrjava/ome/OmeZarrV04Test.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ List<String> expectedAxisNames() {
4242
// ── typed metadata ───────────────────────────────────────────────────────
4343

4444
@Test
45-
void typedEntry_hasVersion() throws Exception {
45+
void typedEntryHasVersion() throws Exception {
4646
MultiscalesMetadataImage<?> image = (MultiscalesMetadataImage<?>) MultiscaleImage.open(imageStoreHandle());
4747
MultiscalesEntry entry = (MultiscalesEntry) image.getMultiscalesEntry(0);
4848
assertEquals("0.4", entry.version);
4949
}
5050

5151
@Test
52-
void typedEntry_level0ScaleValues() throws Exception {
52+
void typedEntryLevel0ScaleValues() throws Exception {
5353
MultiscalesMetadataImage<?> image = (MultiscalesMetadataImage<?>) MultiscaleImage.open(imageStoreHandle());
5454
MultiscalesEntry entry = (MultiscalesEntry) image.getMultiscalesEntry(0);
5555
List<Double> expected = Arrays.asList(1.0, 1.0, 0.5, 0.5, 0.5);
@@ -59,7 +59,7 @@ void typedEntry_level0ScaleValues() throws Exception {
5959
// ── omero + bioformats2raw ───────────────────────────────────────────────
6060

6161
@Test
62-
void omero_channels() throws Exception {
62+
void omeroChannels() throws Exception {
6363
dev.zarr.zarrjava.ome.v0_4.MultiscaleImage image =
6464
dev.zarr.zarrjava.ome.v0_4.MultiscaleImage.openMultiscaleImage(imageStoreHandle());
6565
OmeroMetadata omero = image.getOmeroMetadata();
@@ -70,7 +70,7 @@ void omero_channels() throws Exception {
7070
}
7171

7272
@Test
73-
void bioformats2rawLayout_value() throws Exception {
73+
void bioformats2rawLayoutValue() throws Exception {
7474
dev.zarr.zarrjava.ome.v0_4.MultiscaleImage image =
7575
dev.zarr.zarrjava.ome.v0_4.MultiscaleImage.openMultiscaleImage(imageStoreHandle());
7676
assertEquals(Integer.valueOf(3), image.getBioformats2rawLayout());
@@ -79,13 +79,13 @@ void bioformats2rawLayout_value() throws Exception {
7979
// ── labels ───────────────────────────────────────────────────────────────
8080

8181
@Test
82-
void labels_list() throws Exception {
82+
void labelsList() throws Exception {
8383
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
8484
assertEquals(Collections.singletonList("nuclei"), image.getLabels());
8585
}
8686

8787
@Test
88-
void labels_openLabel() throws Exception {
88+
void labelsOpenLabel() throws Exception {
8989
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
9090
MultiscaleImage nuclei = image.openLabel("nuclei");
9191
assertInstanceOf(dev.zarr.zarrjava.ome.v0_4.MultiscaleImage.class, nuclei);
@@ -95,7 +95,7 @@ void labels_openLabel() throws Exception {
9595
// ── HCS ──────────────────────────────────────────────────────────────────
9696

9797
@Test
98-
void hcs_plate() throws Exception {
98+
void hcsPlate() throws Exception {
9999
Plate plate = Plate.open(storeHandle(TESTDATA.resolve("ome/v0.4_hcs")));
100100
assertInstanceOf(dev.zarr.zarrjava.ome.v0_4.Plate.class, plate);
101101
PlateMetadata meta = plate.getPlateMetadata();
@@ -105,7 +105,7 @@ void hcs_plate() throws Exception {
105105
}
106106

107107
@Test
108-
void hcs_wellViaPlate() throws Exception {
108+
void hcsWellViaPlate() throws Exception {
109109
Plate plate = Plate.open(storeHandle(TESTDATA.resolve("ome/v0.4_hcs")));
110110
Well well = plate.openWell("A/1");
111111
assertInstanceOf(dev.zarr.zarrjava.ome.v0_4.Well.class, well);
@@ -114,7 +114,7 @@ void hcs_wellViaPlate() throws Exception {
114114
}
115115

116116
@Test
117-
void hcs_fullNavigation() throws Exception {
117+
void hcsFullNavigation() throws Exception {
118118
Plate plate = Plate.open(storeHandle(TESTDATA.resolve("ome/v0.4_hcs")));
119119
MultiscaleImage fov = plate.openWell("A/1").openImage("0");
120120
assertInstanceOf(dev.zarr.zarrjava.ome.v0_4.MultiscaleImage.class, fov);
@@ -124,7 +124,7 @@ void hcs_fullNavigation() throws Exception {
124124
// ── write round-trips ────────────────────────────────────────────────────
125125

126126
@Test
127-
void write_createAndReopen() throws Exception {
127+
void writeCreateAndReopen() throws Exception {
128128
List<Axis> axes = Arrays.asList(
129129
new Axis("z", "space", "micrometer"),
130130
new Axis("y", "space", "micrometer"));
@@ -143,7 +143,7 @@ void write_createAndReopen() throws Exception {
143143
}
144144

145145
@Test
146-
void write_omeroRoundTrip() throws Exception {
146+
void writeOmeroRoundTrip() throws Exception {
147147
List<Axis> axes = Arrays.asList(new Axis("z", "space", "micrometer"), new Axis("y", "space", "micrometer"));
148148
StoreHandle handle = storeHandle(TESTOUTPUT.resolve("ome_v04_omero"));
149149
dev.zarr.zarrjava.ome.v0_4.MultiscaleImage created =
@@ -167,7 +167,7 @@ void write_omeroRoundTrip() throws Exception {
167167
}
168168

169169
@Test
170-
void write_plateRoundTrip() throws Exception {
170+
void writePlateRoundTrip() throws Exception {
171171
PlateMetadata meta = new PlateMetadata(
172172
Arrays.asList(new NamedEntry("1"), new NamedEntry("2")),
173173
Arrays.asList(new NamedEntry("A"), new NamedEntry("B")),

src/test/java/dev/zarr/zarrjava/ome/OmeZarrV05Test.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@ List<String> expectedAxisNames() {
4747
// ── typed metadata ───────────────────────────────────────────────────────
4848

4949
@Test
50-
void typedEntry_noVersion() throws Exception {
50+
void typedEntryNoVersion() throws Exception {
5151
MultiscalesMetadataImage<?> image = (MultiscalesMetadataImage<?>) MultiscaleImage.open(imageStoreHandle());
5252
MultiscalesEntry entry = (MultiscalesEntry) image.getMultiscalesEntry(0);
5353
assertEquals("test_image", entry.name);
5454
assertNull(entry.version);
5555
}
5656

5757
@Test
58-
void typedEntry_level0ScaleValues() throws Exception {
58+
void typedEntryLevel0ScaleValues() throws Exception {
5959
MultiscalesMetadataImage<?> image = (MultiscalesMetadataImage<?>) MultiscaleImage.open(imageStoreHandle());
6060
MultiscalesEntry entry = (MultiscalesEntry) image.getMultiscalesEntry(0);
6161
List<Double> expected = Arrays.asList(1.0, 1.0, 0.5, 0.5, 0.5);
6262
assertEquals(expected, entry.datasets.get(0).coordinateTransformations.get(0).scale);
6363
}
6464

6565
@Test
66-
void openScaleLevel_level1HasExpectedShape() throws Exception {
66+
void openScaleLevelLevel1HasExpectedShape() throws Exception {
6767
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
6868
dev.zarr.zarrjava.core.Array level1 = image.openScaleLevel(1);
6969
assertArrayEquals(new long[]{1, 2, 4, 8, 8}, level1.metadata().shape);
@@ -72,7 +72,7 @@ void openScaleLevel_level1HasExpectedShape() throws Exception {
7272
// ── omero + bioformats2raw ───────────────────────────────────────────────
7373

7474
@Test
75-
void omero_channels() throws Exception {
75+
void omeroChannels() throws Exception {
7676
dev.zarr.zarrjava.ome.v0_5.MultiscaleImage image =
7777
dev.zarr.zarrjava.ome.v0_5.MultiscaleImage.openMultiscaleImage(imageStoreHandle());
7878
OmeroMetadata omero = image.getOmeroMetadata();
@@ -84,7 +84,7 @@ void omero_channels() throws Exception {
8484
}
8585

8686
@Test
87-
void bioformats2rawLayout_value() throws Exception {
87+
void bioformats2rawLayoutValue() throws Exception {
8888
dev.zarr.zarrjava.ome.v0_5.MultiscaleImage image =
8989
dev.zarr.zarrjava.ome.v0_5.MultiscaleImage.openMultiscaleImage(imageStoreHandle());
9090
assertEquals(Integer.valueOf(3), image.getBioformats2rawLayout());
@@ -93,13 +93,13 @@ void bioformats2rawLayout_value() throws Exception {
9393
// ── labels ───────────────────────────────────────────────────────────────
9494

9595
@Test
96-
void labels_list() throws Exception {
96+
void labelsList() throws Exception {
9797
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
9898
assertEquals(Collections.singletonList("nuclei"), image.getLabels());
9999
}
100100

101101
@Test
102-
void labels_openLabel() throws Exception {
102+
void labelsOpenLabel() throws Exception {
103103
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
104104
MultiscaleImage nuclei = image.openLabel("nuclei");
105105
assertInstanceOf(dev.zarr.zarrjava.ome.v0_5.MultiscaleImage.class, nuclei);
@@ -109,7 +109,7 @@ void labels_openLabel() throws Exception {
109109
// ── HCS ──────────────────────────────────────────────────────────────────
110110

111111
@Test
112-
void hcs_plate() throws Exception {
112+
void hcsPlate() throws Exception {
113113
Plate plate = Plate.open(storeHandle(TESTDATA.resolve("ome/v0.5_hcs")));
114114
assertInstanceOf(dev.zarr.zarrjava.ome.v0_5.Plate.class, plate);
115115
PlateMetadata meta = plate.getPlateMetadata();
@@ -121,7 +121,7 @@ void hcs_plate() throws Exception {
121121
}
122122

123123
@Test
124-
void hcs_wellViaPlate() throws Exception {
124+
void hcsWellViaPlate() throws Exception {
125125
Plate plate = Plate.open(storeHandle(TESTDATA.resolve("ome/v0.5_hcs")));
126126
Well well = plate.openWell("A/1");
127127
assertInstanceOf(dev.zarr.zarrjava.ome.v0_5.Well.class, well);
@@ -131,7 +131,7 @@ void hcs_wellViaPlate() throws Exception {
131131
}
132132

133133
@Test
134-
void hcs_fullNavigation() throws Exception {
134+
void hcsFullNavigation() throws Exception {
135135
Plate plate = Plate.open(storeHandle(TESTDATA.resolve("ome/v0.5_hcs")));
136136
MultiscaleImage fov = plate.openWell("A/1").openImage("0");
137137
assertInstanceOf(dev.zarr.zarrjava.ome.v0_5.MultiscaleImage.class, fov);
@@ -141,7 +141,7 @@ void hcs_fullNavigation() throws Exception {
141141
// ── write round-trips ────────────────────────────────────────────────────
142142

143143
@Test
144-
void write_createAndReopen() throws Exception {
144+
void writeCreateAndReopen() throws Exception {
145145
List<Axis> axes = Arrays.asList(
146146
new Axis("z", "space", "micrometer"),
147147
new Axis("y", "space", "micrometer"));
@@ -160,7 +160,7 @@ void write_createAndReopen() throws Exception {
160160
}
161161

162162
@Test
163-
void write_labelsRoundTrip() throws Exception {
163+
void writeLabelsRoundTrip() throws Exception {
164164
List<Axis> axes = Arrays.asList(
165165
new Axis("z", "space", "micrometer"),
166166
new Axis("y", "space", "micrometer"));
@@ -183,7 +183,7 @@ void write_labelsRoundTrip() throws Exception {
183183
}
184184

185185
@Test
186-
void write_plateRoundTrip() throws Exception {
186+
void writePlateRoundTrip() throws Exception {
187187
PlateMetadata meta = new PlateMetadata(
188188
Arrays.asList(new NamedEntry("1"), new NamedEntry("2")),
189189
Arrays.asList(new NamedEntry("A"), new NamedEntry("B")),
@@ -198,7 +198,7 @@ void write_plateRoundTrip() throws Exception {
198198
}
199199

200200
@Test
201-
void write_hcsFullIntegration() throws Exception {
201+
void writeHcsFullIntegration() throws Exception {
202202
StoreHandle plateHandle = storeHandle(TESTOUTPUT.resolve("ome_v05_hcs_full"));
203203
dev.zarr.zarrjava.ome.v0_5.Plate.createPlate(plateHandle, new PlateMetadata(
204204
Collections.singletonList(new NamedEntry("1")),

src/test/java/dev/zarr/zarrjava/ome/OmeZarrV06Test.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ List<String> expectedAxisNames() {
4242

4343
@Test
4444
@SuppressWarnings("unchecked")
45-
void coordinateSystems_presentInEntry() throws Exception {
45+
void coordinateSystemsPresentInEntry() throws Exception {
4646
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
4747
dev.zarr.zarrjava.ome.v0_6.MultiscaleImage v06Image =
4848
(dev.zarr.zarrjava.ome.v0_6.MultiscaleImage) image;
@@ -61,7 +61,7 @@ void coordinateSystems_presentInEntry() throws Exception {
6161

6262
@Test
6363
@SuppressWarnings("unchecked")
64-
void datasets_pathsAndTransformations() throws Exception {
64+
void datasetsPathsAndTransformations() throws Exception {
6565
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
6666
dev.zarr.zarrjava.ome.v0_6.MultiscaleImage v06Image =
6767
(dev.zarr.zarrjava.ome.v0_6.MultiscaleImage) image;
@@ -85,7 +85,7 @@ void datasets_pathsAndTransformations() throws Exception {
8585
}
8686

8787
@Test
88-
void unifiedInterface_nodesAndPaths() throws Exception {
88+
void unifiedInterfaceNodesAndPaths() throws Exception {
8989
MultiscaleImage image = MultiscaleImage.open(imageStoreHandle());
9090
MultiscalesEntry entry = image.getMultiscaleNode(0);
9191

@@ -99,7 +99,7 @@ void unifiedInterface_nodesAndPaths() throws Exception {
9999

100100
@Test
101101
@SuppressWarnings("unchecked")
102-
void read3d_axesFromCoordinateSystems() throws Exception {
102+
void read3dAxesFromCoordinateSystems() throws Exception {
103103
MultiscaleImage image = MultiscaleImage.open(storeHandle(V06_3D));
104104
assertInstanceOf(dev.zarr.zarrjava.ome.v0_6.MultiscaleImage.class, image);
105105

@@ -119,7 +119,7 @@ void read3d_axesFromCoordinateSystems() throws Exception {
119119
}
120120

121121
@Test
122-
void read3d_unifiedAxisNames() throws Exception {
122+
void read3dUnifiedAxisNames() throws Exception {
123123
MultiscaleImage image = MultiscaleImage.open(storeHandle(V06_3D));
124124
List<String> axisNames = image.getAxisNames();
125125
assertEquals(Arrays.asList("z", "y", "x"), axisNames);

src/test/java/dev/zarr/zarrjava/ome/OmeZarrV10Test.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ private StoreHandle storeHandle(java.nio.file.Path path) throws Exception {
3131
}
3232

3333
@Test
34-
void readMultiscaleImage_concreteType() throws Exception {
34+
void readMultiscaleImageConcreteType() throws Exception {
3535
MultiscaleImage image = MultiscaleImage.open(storeHandle(TESTDATA.resolve("ome/v1.0/image")));
3636
assertInstanceOf(dev.zarr.zarrjava.ome.v1_0.MultiscaleImage.class, image);
3737
}
3838

3939
@Test
40-
void readMultiscaleImage_unifiedInterface() throws Exception {
40+
void readMultiscaleImageUnifiedInterface() throws Exception {
4141
MultiscaleImage image = MultiscaleImage.open(storeHandle(TESTDATA.resolve("ome/v1.0/image")));
4242
MultiscalesEntry entry = image.getMultiscaleNode(0);
4343

@@ -49,14 +49,14 @@ void readMultiscaleImage_unifiedInterface() throws Exception {
4949
}
5050

5151
@Test
52-
void readMultiscaleImage_openScaleLevel() throws Exception {
52+
void readMultiscaleImageOpenScaleLevel() throws Exception {
5353
MultiscaleImage image = MultiscaleImage.open(storeHandle(TESTDATA.resolve("ome/v1.0/image")));
5454
dev.zarr.zarrjava.core.Array array = image.openScaleLevel(0);
5555
assertArrayEquals(new long[]{8, 16, 16}, array.metadata().shape);
5656
}
5757

5858
@Test
59-
void readCollection_metadata() throws Exception {
59+
void readCollectionMetadata() throws Exception {
6060
Collection collection = Collection.openCollection(storeHandle(TESTDATA.resolve("ome/v1.0")));
6161
CollectionMetadata meta = collection.getCollectionMetadata();
6262
assertNotNull(meta);
@@ -67,14 +67,14 @@ void readCollection_metadata() throws Exception {
6767
}
6868

6969
@Test
70-
void readCollection_openNodeReturnsMultiscaleImage() throws Exception {
70+
void readCollectionOpenNodeReturnsMultiscaleImage() throws Exception {
7171
Collection collection = Collection.openCollection(storeHandle(TESTDATA.resolve("ome/v1.0")));
7272
Object node = collection.openNode("image");
7373
assertInstanceOf(dev.zarr.zarrjava.ome.v1_0.MultiscaleImage.class, node);
7474
}
7575

7676
@Test
77-
void write_roundTrip() throws Exception {
77+
void writeRoundTrip() throws Exception {
7878
StoreHandle collectionHandle = new FilesystemStore(TESTOUTPUT.resolve("v10_collection")).resolve();
7979
StoreHandle imageHandle = collectionHandle.resolve("image");
8080

0 commit comments

Comments
 (0)