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

Unable to use Fongo with Spring Boot 2.1.0 #39

Closed
aidanwhiteley opened this issue Nov 30, 2018 · 1 comment
Closed

Unable to use Fongo with Spring Boot 2.1.0 #39

aidanwhiteley opened this issue Nov 30, 2018 · 1 comment
Assignees

Comments

@aidanwhiteley
Copy link
Owner

Describe the bug
Uplifting to Spring Boot 2.1.0 causes exceptions when using the Fongo (fake Mongo) test support in this project.

To Reproduce
Steps to reproduce the behavior:

  1. Run the tests in this project
  2. Get java.lang.NoClassDefFoundError: com/mongodb/OperationExecutor

Expected behavior
All tests pass - no NoClassDefFoundError errors!

Additional context
Problem worked round by commenting out implementation of test com.aidanwhiteley.books.repository.config.FongoConfig

Problem due to Fongo returning a com.mongodb.OperationExecutor and that class was deprecated and no longer available in the mongodb-driver 3.8.2 used with spring boot 2.1.0.

See issue raised on the Fongo project at fakemongo/fongo#357

In the meantime, Fongo support will have to be removed from this project.

@aidanwhiteley
Copy link
Owner Author

Changed to user https://github.com/bwaldvogel/mongo-java-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant