added test for default config

This commit is contained in:
IrynaMatveieva 2024-06-06 16:29:38 +03:00
parent 6a9a933d48
commit 3368b9480b

View File

@ -117,6 +117,12 @@ public class TbSaveToCustomCassandraTableNodeTest {
node.destroy();
}
@Test
void verifyDefaultConfig() {
assertThat(config.getTableName()).isEqualTo("");
assertThat(config.getFieldsMapping()).isEqualTo(Map.of("", ""));
}
@Test
void givenCassandraClusterIsMissing_whenInit_thenThrowsException() {
var configuration = new TbNodeConfiguration(JacksonUtil.valueToTree(config));