Skip to content

Commit fea766c

Browse files
committed
issues/650: clean up
1 parent 1f6153b commit fea766c

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

api/src/test/java/io/kafbat/ui/AbstractIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void initialize(@NotNull ConfigurableApplicationContext context) {
8787
} catch (FileNotFoundException e) {
8888
throw new RuntimeException(e);
8989
}
90-
System.setProperty("kafka.clusters.0.serde.0.properties.protobufMessageName", "test.Main");
90+
System.setProperty("kafka.clusters.0.serde.0.properties.protobufMessageName", "test.MessageWithAny");
9191

9292
// List unavailable hosts to verify failover
9393
System.setProperty("kafka.clusters.0.schemaRegistry",

api/src/test/java/io/kafbat/ui/service/MessagesServiceTest.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,10 @@
1010
import io.kafbat.ui.model.KafkaCluster;
1111
import io.kafbat.ui.model.PollingModeDTO;
1212
import io.kafbat.ui.model.SmartFilterTestExecutionDTO;
13-
import io.kafbat.ui.model.SmartFilterTestExecutionResultDTO;
1413
import io.kafbat.ui.model.TopicMessageDTO;
1514
import io.kafbat.ui.model.TopicMessageEventDTO;
1615
import io.kafbat.ui.producer.KafkaTestProducer;
17-
import io.kafbat.ui.serdes.builtin.Int32Serde;
18-
import io.kafbat.ui.serdes.builtin.Int64Serde;
1916
import io.kafbat.ui.serdes.builtin.ProtobufFileSerde;
20-
import io.kafbat.ui.serdes.builtin.ProtobufRawSerde;
2117
import io.kafbat.ui.serdes.builtin.StringSerde;
2218
import java.util.HashSet;
2319
import java.util.List;
@@ -26,16 +22,13 @@
2622
import java.util.UUID;
2723
import java.util.concurrent.atomic.AtomicReference;
2824
import org.apache.kafka.clients.admin.NewTopic;
29-
import org.apache.kafka.clients.producer.RecordMetadata;
3025
import org.junit.jupiter.api.AfterEach;
3126
import org.junit.jupiter.api.BeforeEach;
3227
import org.junit.jupiter.api.Test;
3328
import org.junit.jupiter.params.ParameterizedTest;
3429
import org.junit.jupiter.params.provider.CsvSource;
35-
import org.openapitools.jackson.nullable.JsonNullable;
3630
import org.springframework.beans.factory.annotation.Autowired;
3731
import reactor.core.publisher.Flux;
38-
import reactor.core.publisher.Mono;
3932
import reactor.test.StepVerifier;
4033

4134
class MessagesServiceTest extends AbstractIntegrationTest {
@@ -226,9 +219,9 @@ void execSmartFilterTestReturnsErrorOnFilterCompilationError() {
226219
void sendMessageWithProtobufAnyType() {
227220
String jsonContent = """
228221
{
229-
"name": "testFromSpringApp",
222+
"name": "testName",
230223
"payload": {
231-
"@type": "type.googleapis.com/test.Referenced",
224+
"@type": "type.googleapis.com/test.PayloadMessage",
232225
"id": "123"
233226
}
234227
}

api/src/test/resources/protobuf-serde/main.proto renamed to api/src/test/resources/protobuf-serde/messagewithany.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package test;
33

44
import "google/protobuf/any.proto";
55

6-
message Main {
6+
message MessageWithAny {
77
string name = 1;
88
google.protobuf.Any payload = 2;
99
}
1010

11-
message Referenced {
11+
message PayloadMessage {
1212
string id = 1;
1313
}

0 commit comments

Comments
 (0)