diff --git a/mod-audit-server/src/test/java/org/folio/rest/impl/InvoiceLineEventsHandlerMockTest.java b/mod-audit-server/src/test/java/org/folio/rest/impl/InvoiceLineEventsHandlerMockTest.java index f4eba2b7..1da80381 100644 --- a/mod-audit-server/src/test/java/org/folio/rest/impl/InvoiceLineEventsHandlerMockTest.java +++ b/mod-audit-server/src/test/java/org/folio/rest/impl/InvoiceLineEventsHandlerMockTest.java @@ -72,9 +72,9 @@ void shouldProcessEvent() { saveFuture.onComplete(ar -> Assertions.assertTrue(ar.succeeded())); } - private KafkaConsumerRecord buildKafkaConsumerRecord(InvoiceLineAuditEvent record) { - String topic = KafkaTopicNameHelper.formatTopicName(KAFKA_ENV, getDefaultNameSpace(), TENANT_ID, record.getAction().toString()); - ConsumerRecord consumerRecord = buildConsumerRecord(topic, record); + private KafkaConsumerRecord buildKafkaConsumerRecord(InvoiceLineAuditEvent kafkaConsumerRecord) { + String topic = KafkaTopicNameHelper.formatTopicName(KAFKA_ENV, getDefaultNameSpace(), TENANT_ID, kafkaConsumerRecord.getAction().toString()); + ConsumerRecord consumerRecord = buildConsumerRecord(topic, kafkaConsumerRecord); return new KafkaConsumerRecordImpl<>(consumerRecord); }