use of com.datastax.oss.dsbulk.runner.cli.ParseException in project dsbulk by datastax.
the class DataStaxBulkLoaderTest method should_not_accept_parse_error.
@Test
void should_not_accept_parse_error() {
ParseException error = catchThrowableOfType(() -> new CommandLineParser("load", "--codec.booleanStrings", "[a,b").parse(), ParseException.class);
assertThat(error).hasMessageContaining("Invalid value for dsbulk.codec.booleanStrings, expecting LIST, got: '[a,b'").hasCauseInstanceOf(IllegalArgumentException.class);
assertThat(error.getCause()).hasMessageContaining("h");
}
Aggregations