-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add protobuf native integration tests for apicurio serdes support
- Loading branch information
1 parent
43ebc1d
commit 5c24e10
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...tests/kafka-protobuf-apicurio2/src/test/java/io/quarkus/it/kafka/KafkaProtobufTestIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.quarkus.it.kafka; | ||
|
||
import io.apicurio.registry.rest.client.RegistryClientFactory; | ||
import io.apicurio.rest.client.VertxHttpClientProvider; | ||
import io.quarkus.it.kafka.protobuf.ProtobufKafkaCreator; | ||
import io.quarkus.test.common.QuarkusTestResource; | ||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
import io.vertx.core.Vertx; | ||
import org.junit.jupiter.api.BeforeAll; | ||
|
||
@QuarkusIntegrationTest | ||
@QuarkusTestResource(value = KafkaResource.class, restrictToAnnotatedClass = true) | ||
public class KafkaProtobufTestIT extends KafkaProtobufTestBase { | ||
|
||
ProtobufKafkaCreator creator; | ||
|
||
@Override | ||
ProtobufKafkaCreator creator() { | ||
return creator; | ||
} | ||
|
||
@BeforeAll | ||
public static void setUp() { | ||
// this is for the test JVM, which also uses Kafka client, which in turn also interacts with the registry | ||
RegistryClientFactory.setProvider(new VertxHttpClientProvider(Vertx.vertx())); | ||
} | ||
|
||
} |