Skip to content

Commit

Permalink
test/wip: BdvMetadataIoTests clearer assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
bogovicj committed Oct 4, 2024
1 parent 2bd2533 commit 989ec72
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ public <T extends NumericType<T> & NativeType<T>, V extends Volatile<T> & Numeri
Arrays.asList(N5ViewerCreator.n5vGroupParsers));

final N5TreeNode root = datasetDiscoverer.discoverAndParseRecursive("");
assertNotNull("root is null", root);
assertNotNull("Root node is null", root);

final Optional<N5TreeNode> metaOpt = root.getDescendant(readerDataset);
if (!metaOpt.isPresent())
fail("could not find metadata at: " + readerDataset);
assertTrue( String.format( "[%s] Could not find descendant node: %s ", outputPath, readerDataset ),
metaOpt.isPresent());

final List<ConverterSetup> converterSetups = new ArrayList<>();
final List<SourceAndConverter<T>> sourcesAndConverters = new ArrayList<>();
Expand Down Expand Up @@ -148,6 +148,8 @@ public <T extends NumericType<T> & NativeType<T>, V extends Volatile<T> & Numeri
final List<Source<T>> srcList = sourcesAndConverters.stream().map(sac -> sac.getSpimSource()).collect(Collectors.toList());
assertTrue(String.format("%s data ", dataset), sourceDataIdentical(imp, srcList));
}

n5.close();
}
}

Expand Down

0 comments on commit 989ec72

Please sign in to comment.