use of org.apache.druid.data.input.impl.NoopFirehoseFactory in project druid by druid-io.
the class IndexIngestionSpecTest method testFirehoseAndInputFormat.
@Test
public void testFirehoseAndInputFormat() {
expectedException.expect(IllegalArgumentException.class);
expectedException.expectMessage("Cannot use firehose and inputFormat together.");
final IndexIngestionSpec spec = new IndexIngestionSpec(new DataSchema("dataSource", new TimestampSpec(null, null, null), DimensionsSpec.EMPTY, new AggregatorFactory[0], new ArbitraryGranularitySpec(Granularities.NONE, null), null), new IndexIOConfig(new NoopFirehoseFactory(), null, new NoopInputFormat(), null, null), null);
}
use of org.apache.druid.data.input.impl.NoopFirehoseFactory in project druid by druid-io.
the class IndexIngestionSpecTest method testFirehoseAndInputSource.
@Test
public void testFirehoseAndInputSource() {
expectedException.expect(IllegalArgumentException.class);
expectedException.expectMessage("At most one of [Property{name='firehose', value=NoopFirehoseFactory{}}, Property{name='inputSource'");
final IndexIngestionSpec spec = new IndexIngestionSpec(new DataSchema("dataSource", new TimestampSpec(null, null, null), DimensionsSpec.EMPTY, new AggregatorFactory[0], new ArbitraryGranularitySpec(Granularities.NONE, null), null), new IndexIOConfig(new NoopFirehoseFactory(), new NoopInputSource(), null, null, null), null);
}
Aggregations