use of com.datastax.oss.dsbulk.workflow.api.error.AbsoluteErrorThreshold in project dsbulk by datastax.
the class LogSettingsTest method should_accept_maxQueryWarnings_as_absolute_number.
@Test()
void should_accept_maxQueryWarnings_as_absolute_number() throws IOException {
Config config = TestConfigUtils.createTestConfig("dsbulk.log", "maxQueryWarnings", 20);
LogSettings settings = new LogSettings(config, executionId);
settings.init();
ErrorThreshold threshold = settings.queryWarningsThreshold;
assertThat(threshold).isInstanceOf(AbsoluteErrorThreshold.class);
assertThat(((AbsoluteErrorThreshold) threshold).getMaxErrors()).isEqualTo(20);
}
use of com.datastax.oss.dsbulk.workflow.api.error.AbsoluteErrorThreshold in project dsbulk by datastax.
the class LogSettingsTest method should_accept_maxErrors_as_absolute_number.
@Test()
void should_accept_maxErrors_as_absolute_number() throws IOException {
Config config = TestConfigUtils.createTestConfig("dsbulk.log", "maxErrors", 20);
LogSettings settings = new LogSettings(config, executionId);
settings.init();
ErrorThreshold threshold = settings.errorThreshold;
assertThat(threshold).isInstanceOf(AbsoluteErrorThreshold.class);
assertThat(((AbsoluteErrorThreshold) threshold).getMaxErrors()).isEqualTo(20);
}
Aggregations