Skip to content

Commit dfbc32f

Browse files
author
Bingqin Zhou
committed
Fix unit test.
1 parent a102e8c commit dfbc32f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kcbq-confluent/src/test/java/com/wepay/kafka/connect/bigquery/schemaregistry/schemaretriever/SchemaRegistrySchemaRetrieverTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import com.google.cloud.bigquery.TableId;
99

10+
import com.wepay.kafka.connect.bigquery.api.KafkaSchemaRecordType;
1011
import io.confluent.connect.avro.AvroData;
1112

1213
import io.confluent.kafka.schemaregistry.client.SchemaMetadata;
@@ -42,7 +43,7 @@ public void testRetrieveSchema() throws Exception {
4243
Schema expectedKafkaConnectSchema =
4344
SchemaBuilder.struct().field("f1", Schema.STRING_SCHEMA).name("testrecord").build();
4445

45-
assertEquals(expectedKafkaConnectSchema, testSchemaRetriever.retrieveSchema(table, testTopic, "value"));
46-
assertEquals(expectedKafkaConnectSchema, testSchemaRetriever.retrieveSchema(table, testTopic, "key"));
46+
assertEquals(expectedKafkaConnectSchema, testSchemaRetriever.retrieveSchema(table, testTopic, KafkaSchemaRecordType.VALUE));
47+
assertEquals(expectedKafkaConnectSchema, testSchemaRetriever.retrieveSchema(table, testTopic, KafkaSchemaRecordType.KEY));
4748
}
4849
}

0 commit comments

Comments
 (0)