-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix XStream serializer issue in KafkaPublisher
Fix missed XStreamSerializer issue due to the Axon Framework 4.5.5 update
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
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
22 changes: 22 additions & 0 deletions
22
.../org/axonframework/extensions/kafka/eventhandling/producer/KafkaPublisherBuilderTest.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,22 @@ | ||
package org.axonframework.extensions.kafka.eventhandling.producer; | ||
|
||
import org.junit.jupiter.api.*; | ||
import org.junit.jupiter.api.extension.*; | ||
import org.mockito.*; | ||
import org.mockito.junit.jupiter.*; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
@ExtendWith(MockitoExtension.class) | ||
class KafkaPublisherBuilderTest { | ||
|
||
@Mock | ||
private ProducerFactory<String, byte[]> producerFactory; | ||
|
||
@Test | ||
void testKafkaPublisherInitialisationShouldNotThrowException() { | ||
assertDoesNotThrow(() -> KafkaPublisher.<String, byte[]>builder() | ||
.producerFactory(producerFactory) | ||
.build()); | ||
} | ||
} |