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 5d9dbda03b
commit 47a198c688

View File

@@ -1673,9 +1673,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));