Skip to content

Commit 2e048f7

Browse files
committed
improve httpStore testing
1 parent 77060de commit 2e048f7

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

src/test/java/dev/zarr/zarrjava/store/HttpStoreTest.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,20 @@ public class HttpStoreTest extends StoreTest {
1111

1212
@Override
1313
StoreHandle storeHandleWithData() {
14+
return br00109990StoreHandle().resolve("c", "0", "0", "0");
15+
}
16+
17+
StoreHandle br00109990StoreHandle() {
1418
HttpStore httpStore = new dev.zarr.zarrjava.store.HttpStore("https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.5/idr0033A");
1519
return httpStore.resolve("BR00109990_C2.zarr", "0", "0");
16-
1720
}
1821

1922
@Test
20-
public void testHttpStore() throws IOException, ZarrException {
21-
Array array = Array.open(storeHandleWithData());
23+
public void testOpen() throws IOException, ZarrException {
24+
Array array = Array.open(br00109990StoreHandle());
2225
Assertions.assertArrayEquals(new long[]{5, 1552, 2080}, array.metadata().shape);
2326
}
2427

25-
@Override
26-
@Test
27-
public void testStoreGetSize() {
28-
// size is not defined in BR00109990_C2.zarr
29-
long size = storeHandleWithData().getSize();
30-
Assertions.assertEquals(-1, size);
31-
}
32-
3328
@Override
3429
void testList() throws ZarrException, IOException {
3530
// listing is not supported in HttpStore

0 commit comments

Comments
 (0)