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

Update MongoDB driver to 3.0 #133

Open
ChrisDeBruyne opened this issue May 8, 2015 · 10 comments
Open

Update MongoDB driver to 3.0 #133

ChrisDeBruyne opened this issue May 8, 2015 · 10 comments

Comments

@ChrisDeBruyne
Copy link

We can't run our tests anymore since some methodes have been removed.
Like :

java.lang.NoSuchMethodError: com.mongodb.DB.isAuthenticated()Z
at
com.lordofthejars.nosqlunit.mongodb.MongoOperation.getMongoDb(MongoOperation.java:122)

@lordofthejars
Copy link
Owner

Yes This would be a big impact on code upgrading to mongo driver 3.0. Currently I am working to implementing Neo4j2.x

I will need to see what's happening with MongoDb3.0. Of course feel free to collaborate.

@ChrisDeBruyne
Copy link
Author

Would like to, but your master branch is unstable now. What commit is best
to branch from?
On 8 May 2015 15:19, "Alex Soto" [email protected] wrote:

Yes This would be a big impact on code upgrading to mongo driver 3.0.
Currently I am working to implementing Neo4j2.x

I will need to see what's happening with MongoDb3.0. Of course feel free
to collaborate.


Reply to this email directly or view it on GitHub
#133 (comment)
.

@lordofthejars
Copy link
Owner

Well it is unstable because of neo4j, I will try to fix this weekend, but
you can work with mongoDB module without any problem and just run these
tests.

El dv., 8 maig 2015 a les 17:26, ChrisDeBruyne ([email protected])
va escriure:

Would like to, but your master branch is unstable now. What commit is best
to branch from?
On 8 May 2015 15:19, "Alex Soto" [email protected] wrote:

Yes This would be a big impact on code upgrading to mongo driver 3.0.
Currently I am working to implementing Neo4j2.x

I will need to see what's happening with MongoDb3.0. Of course feel free
to collaborate.


Reply to this email directly or view it on GitHub
<
#133 (comment)

.


Reply to this email directly or view it on GitHub
#133 (comment)
.

@ChrisDeBruyne
Copy link
Author

I was checking out the tests and noticed that you use Fongo (https://github.com/fakemongo/fongo)
This is a problem because Fongo also does not support the new Java driver.
So unless you decide to drop Fongo and use the real deal in your unit tests, I'm stuck :-(

@lordofthejars
Copy link
Owner

Everything done. Next release will contain MongoDB support.

@paulovictorv
Copy link

I'm really sorry to revive an old issue, but is there any updates on this? I've noticed that the only problem seems to be Fongo.

I've added an exclusion to 1.5.10 version of Fongo, and manually added the latest 2.0.2 and everything is running smooth.

@ricardozanini
Copy link

In fact, there's a problem with DBRef instances too:
java.lang.NoSuchMethodError: com.mongodb.DBRef.getRef()Ljava/lang/String;

I am getting this error within @UsingDataSet and my data files pointing to each other through $ref attributes. I saw that this issue is already addressed in the new version, though. Waiting for this new release as well. :)

Thanks for your time and work with this lib, lord. But I just want to get this registered for others looking for this problem too. Downgrade to Mongo 2 is impossible for me at this time.

@jschutijzer
Copy link

Do you have any idea when the next release will be? We need the upgrade urgently :)

@lordofthejars
Copy link
Owner

Now tests are integrated with mongo 3.3.X, I will release this night.

@lordofthejars
Copy link
Owner

Released 0.12.0, now waiting to be sync to maven central.

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

No branches or pull requests

5 participants