fakemongo / fongo

faked out in-memory mongo for java
Apache License 2.0
523 stars 156 forks source link

Support for driver version 4.X #377

Open jwwallin opened 4 years ago

jwwallin commented 4 years ago

There are situations with Quarkus where the driver version 4.X is absolutely necessary and this seems to be the most usable solution for handling unit testing with database connection beans.

twillouer commented 4 years ago

Hi,

I'm sorry but it's too hard to maintain fongo alone, and drivers are moving too fast.

In the same time, testcontainers is an awesome project and can handle all mongodb version.

see https://phauer.com/2019/modern-best-practices-testing-java/#dont-use-in-memory-databases-for-tests for example

twillouer commented 4 years ago

Hi,

I'm sorry but it's too hard to maintain fongo alone, and drivers are moving too fast.

In the same time, testcontainers is an awesome project and can handle all mongodb version.

see https://phauer.com/2019/modern-best-practices-testing-java/#dont-use-in-memory-databases-for-tests for example

twillouer commented 4 years ago

Hi,

I'm sorry but it's too hard to maintain fongo alone, and drivers are moving too fast.

In the same time, testcontainers is an awesome project and can handle all mongodb version.

see https://phauer.com/2019/modern-best-practices-testing-java/#dont-use-in-memory-databases-for-tests for example

vladimirmyp commented 1 year ago

hi @twillouer , I am working on upgrade of Fongo to support driver version 4.X. I will be a very big PR and I wanted to ask if you will be willing to review and merge such PR?

twillouer commented 1 year ago

hi, thanks, yes, it will be possible :)

niharbabu99 commented 1 year ago

@vladimirmyp are you working on the PR. We were also upgrading our mongo client version to 4.x and faced the same issue with fmongo. Seeing your comment I refrained to start working on it.