use of com.bakdata.quick.avro.ChartRecord in project quick by bakdata.
the class IngestControllerTest method valueParsingProvider.
private static Stream<Arguments> valueParsingProvider() {
final QuickData<String> stringInfo = newStringData();
final ChartRecord record = inputRecord();
return Stream.of(new TestValueArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, stringInfo, stringInfo), "value", "value"), new TestValueArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, stringInfo, newIntegerData()), 5, 5), new TestValueArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, stringInfo, newDoubleData()), 5.0, 5.0), new TestValueArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, stringInfo, getAvroInfo()), record, outputRecord()), new TestValueArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, stringInfo, newLongData()), 5L, 5L)).map(arg -> Arguments.of(arg.getData().getValueData().getType(), arg));
}
use of com.bakdata.quick.avro.ChartRecord in project quick by bakdata.
the class IngestControllerTest method keyArguments.
private static Stream<TestKeyArgument<?, ?, ?>> keyArguments() {
final QuickData<String> stringInfo = newStringData();
final ChartRecord record = inputRecord();
return Stream.of(new TestKeyArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, stringInfo, stringInfo), "value", "value"), new TestKeyArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, newIntegerData(), stringInfo), 5, 5), new TestKeyArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, newDoubleData(), stringInfo), 5.0, 5.0), new TestKeyArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, getAvroInfo(), stringInfo), record, outputRecord()), new TestKeyArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, newLongData(), stringInfo), 5L, 5L));
}
Aggregations