Skip to content

GH-2481: Global Embedded Broker and JUnit Platform #2482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 16, 2022

Conversation

garyrussell
Copy link
Contributor

Resolves #2481

The Maven Surefire plugin uses an older version of JUnit platform which is incompatible with the Global embedded broker.

Check that the platform version is compatible before attempting to determine if a global embedded broker should be created.

Tested with a Spring Boot application.

Resolves spring-projects#2481

The Maven Surefire plugin uses an older version of JUnit platform
which is incompatible with the Global embedded broker.

Check that the platform version is compatible before attempting
to determine if a global embedded broker should be created.

Tested with a Spring Boot application.
@@ -84,10 +84,27 @@ public class GlobalEmbeddedKafkaTestExecutionListener implements TestExecutionLi
public static final String BROKER_PROPERTIES_LOCATION_PROPERTY_NAME =
"spring.kafka.embedded.broker.properties.location";

private static final boolean JUNIT_PLATFORM_COMPATIBLE;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add you name to the @author list, please, 😄

@artembilan artembilan merged commit 70035e7 into spring-projects:main Nov 16, 2022
@garyrussell garyrussell deleted the GH-2481 branch November 16, 2022 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable Global Embedded Kafka Support if JUnit Platform is < 1.8
2 participants