Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Sep 17, 2024
1 parent 049f77f commit 1425721
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,18 @@ void providesBlockStreamManager_AsDir() throws IOException {
blockStreamManager.getClass().getName(),
BlockAsDirBlockStreamManager.class.getName());
}

@Test
void providesBlockStreamManager_default() throws IOException {
BlockStreamConfig blockStreamConfig =
TestUtils.getTestConfiguration(Map.of("blockStream.managerImplementation", ""))
.getConfigData(BlockStreamConfig.class);

BlockStreamManager blockStreamManager =
GeneratorInjectionModule.providesBlockStreamManager(blockStreamConfig);

assertEquals(
blockStreamManager.getClass().getName(),
BlockAsFileBlockStreamManager.class.getName());
}
}

0 comments on commit 1425721

Please sign in to comment.