Skip to content

Conversation

@genuss
Copy link
Contributor

@genuss genuss commented Dec 17, 2025

This change updates grpcmock so it can be used with spring-boot 4. I also bumped spring-grpc dependency to 1.0.0, but this applies to an example project only.

Two main changes applied:

  • PropertyMapping moved to another package.
  • GrpcMockConfiguration doesn't implement SmartLifecycle now, it uses DisposableBean to stop the GRPC server. This is needed to support context pausing in tests, implemented in spring framework 7. Now, spring will may pause a context during tests execution, if the context is needed, and resume it before using the next time.
  • I also got rid of mockito in one test due to its issues with DefaultListableBeanFactory. I believe the test is even cleaner now.

I'm not sure how you'd like to proceed with the change, as it makes the project incompatible with spring-boot 3 due to the first change. Would you drop spring-boot 3 support now?

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.

1 participant