Search in sources :

Example 1 with AvroTopicData

use of com.bakdata.quick.common.api.model.AvroTopicData in project quick by bakdata.

the class AvroResolverTest method shouldDeserializeRecord.

@Test
void shouldDeserializeRecord() {
    final AvroTopicData data = AvroTopicData.newBuilder().setKeyType(AvroQuickTopicType.DOUBLE).setValueType(AvroQuickTopicType.INTEGER).setName("test").setWriteType(AvroWriteType.MUTABLE).build();
    assertDoesNotThrow(() -> this.objectMapper.writeValueAsString(data));
}
Also used : AvroTopicData(com.bakdata.quick.common.api.model.AvroTopicData) Test(org.junit.jupiter.api.Test) MicronautTest(io.micronaut.test.extensions.junit5.annotation.MicronautTest)

Aggregations

AvroTopicData (com.bakdata.quick.common.api.model.AvroTopicData)1 MicronautTest (io.micronaut.test.extensions.junit5.annotation.MicronautTest)1 Test (org.junit.jupiter.api.Test)1