Skip to content

Commit

Permalink
Fix assertions in LoggerMessageFactoryCustomizationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ppkarwasz committed Dec 9, 2024
1 parent 18a1deb commit 8ee4237
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ private static void assertTestMessageFactories(
Logger logger,
Class<? extends MessageFactory> messageFactoryClass,
Class<? extends FlowMessageFactory> flowMessageFactoryClass) {
assertThat((MessageFactory) logger.getMessageFactory()).isInstanceOf(messageFactoryClass);
assertThat(logger.getFlowMessageFactory()).isInstanceOf(flowMessageFactoryClass);
assertThat(logger.getMessageFactory().getClass()).isEqualTo(messageFactoryClass);
assertThat(logger.getFlowMessageFactory().getClass()).isEqualTo(flowMessageFactoryClass);
}

public static class TestMessageFactory extends AbstractMessageFactory {
Expand Down

0 comments on commit 8ee4237

Please sign in to comment.