Skip to content
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

[incubator-kie-drools-5745] Compatibility issue with Spring-boot 3.2 #6064

Merged

Conversation

tkobayas
Copy link
Contributor

@tkobayas tkobayas commented Sep 4, 2024

Comment on lines +33 to +43
@Test
public void replaceNestedPathForSpringBoot32_shouldNotAffectOldPath() {
String result = JarUtils.replaceNestedPathForSpringBoot32("/dir/myapp.jar!/BOOT-INF/lib/mykjar.jar");
assertThat(result).isEqualTo("/dir/myapp.jar!/BOOT-INF/lib/mykjar.jar");
}

@Test
public void replaceNestedPathForSpringBoot32_shouldReplaceNewPath() {
String result = JarUtils.replaceNestedPathForSpringBoot32("/dir/myapp.jar/!BOOT-INF/lib/mykjar.jar");
assertThat(result).isEqualTo("/dir/myapp.jar!/BOOT-INF/lib/mykjar.jar");
}
Copy link
Contributor Author

@tkobayas tkobayas Sep 4, 2024

Choose a reason for hiding this comment

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

Added simple unit tests only.

I have manually tested with spring boot 3.2.6 uber jar. https://github.com/tkobayas/kiegroup-examples/tree/master/Ex-spring-boot-3.2-demo-main . and confirmed that the issue is solved.

Adding such integration tests (actually build a uber jar and run it with ProcessBuilder) might be worth discussing.

@pibizza pibizza changed the title [incubator-kie-drools-5745] Comptability issue with Spring-boot 3.2 [incubator-kie-drools-5745] Compatibility issue with Spring-boot 3.2 Sep 6, 2024
@tkobayas tkobayas merged commit 9aee8fe into apache:main Sep 6, 2024
10 checks passed
@tkobayas tkobayas linked an issue Sep 6, 2024 that may be closed by this pull request
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.

Compatibility issue with Spring-boot 3.2
3 participants