DATAMONGO-540 - Fixed test case.

Apparently the test case was not working on MongoDB instances in version 2.2.
This commit is contained in:
Oliver Gierke
2013-07-08 13:57:16 +02:00
parent 6e46fb12cb
commit e92e5c737f

View File

@@ -1660,9 +1660,8 @@ public class MongoTemplateTests {
String fieldValue = "bubu";
Update update = Update.update("field", fieldValue);
String collectionName = "datamongo540";
template.upsert(query, update, collectionName);
Sample result = template.findOne(query, Sample.class, collectionName);
template.upsert(query, update, Sample.class);
Sample result = template.findOne(query, Sample.class);
assertThat(result, is(notNullValue()));
assertThat(result.field, is(fieldValue));