Skip to content

Commit

Permalink
Better Errors Thrown
Browse files Browse the repository at this point in the history
The errors thrown in the tests currently arent that good so hopefully this will change that.
  • Loading branch information
AvocadoMoon committed Sep 18, 2023
1 parent bdb100d commit 579110c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/test/java/org/vcell/vcellfiji/N5ImageHandlerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void testGettingImgPlus() throws IOException {

@Test
// Create client without creds, with cred no endpoint, endpoint no creds, endpoint and creds, then test whether they can handle images as expected
public void testS3Client() {
public void testS3Client() throws IOException {
// HashMap<String, String> endpointCreds = new HashMap<>();
HashMap<String, String> endpointNoCreds = new HashMap<>();
HashMap<String, String> credentials = new HashMap<>();
Expand Down Expand Up @@ -97,16 +97,11 @@ public void testS3Client() {
}


private void remoteN5ImgPlusTests(N5ImageHandler n5ImageHandler){
try {
private void remoteN5ImgPlusTests(N5ImageHandler n5ImageHandler) throws IOException {
String dataSet = "5DStack";
ImagePlus imagePlus = n5ImageHandler.getImgPlusFromN5File(dataSet, n5ImageHandler.getN5AmazonS3Reader());
dataSetListTest(n5ImageHandler.getS3N5DatasetList());
fiveDStackTests(imagePlus);
}
catch (Exception e){
throw new RuntimeException(e);
}
}

private void fiveDStackTests(ImagePlus variableImgPlus){
Expand Down

0 comments on commit 579110c

Please sign in to comment.