@@ -44,15 +44,8 @@ public void clearTestoutputFolder() throws IOException {
4444 }
4545
4646 @ Test
47- public void testStores () throws IOException , ZarrException {
48- FilesystemStore fsDataStore = new FilesystemStore (TESTDATA );
49- FilesystemStore fsOutStore = new FilesystemStore (TESTOUTPUT );
50- HttpStore httpStore = new HttpStore ("https://static.webknossos.org/data/" );
51- S3Store s3Store = new S3Store (AmazonS3ClientBuilder .standard ()
52- .withRegion ("eu-west-1" )
53- .withCredentials (new ProfileCredentialsProvider ())
54- .build (), "static.webknossos.org" , "data" );
55-
47+ public void testFileSystemStores () throws IOException , ZarrException {
48+ FilesystemStore fsStore = new FilesystemStore (TESTDATA );
5649 ObjectMapper objectMapper = Node .makeObjectMapper ();
5750
5851 GroupMetadata group = objectMapper .readValue (
@@ -71,19 +64,29 @@ public void testStores() throws IOException, ZarrException {
7164 System .out .println (objectMapper .writeValueAsString (arrayMetadata ));
7265
7366 System .out .println (
74- Array .open (fsDataStore .resolve ("l4_sample" , "color" , "1" )));
67+ Array .open (fsStore .resolve ("l4_sample" , "color" , "1" )));
7568 System .out .println (
76- Arrays .toString (Group .open (fsDataStore .resolve ("l4_sample" )).list ().toArray (Node []::new )));
69+ Arrays .toString (Group .open (fsStore .resolve ("l4_sample" )).list ().toArray (Node []::new )));
7770 System .out .println (
78- Arrays .toString (((Group ) Group .open (fsDataStore .resolve ("l4_sample" )).get ("color" )).list ()
71+ Arrays .toString (((Group ) Group .open (fsStore .resolve ("l4_sample" )).get ("color" )).list ()
7972 .toArray (Node []::new )));
73+ }
74+
75+ @ Test
76+ public void testS3Store () throws IOException , ZarrException {
77+ S3Store s3Store = new S3Store (AmazonS3ClientBuilder .standard ()
78+ .withRegion ("eu-west-1" )
79+ .withCredentials (new ProfileCredentialsProvider ())
80+ .build (), "static.webknossos.org" , "data" );
81+ System .out .println (Array .open (s3Store .resolve ("zarr_v3" , "l4_sample" , "color" , "1" )));
82+ }
8083
84+ @ Test
85+ public void testHttpStore () throws IOException , ZarrException {
86+ HttpStore httpStore = new HttpStore ("https://static.webknossos.org/data/" );
8187 System .out .println (
8288 com .scalableminds .zarrjava .v2 .Array .open (httpStore .resolve ("l4_sample" , "color" , "1" )));
83-
8489 System .out .println (Array .open (httpStore .resolve ("zarr_v3" , "l4_sample" , "color" , "1" )));
85- System .out .println (Array .open (s3Store .resolve ("zarr_v3" , "l4_sample" , "color" , "1" )));
86-
8790 }
8891
8992 @ Test
0 commit comments