From 62b90a9dec628bf16fe1ef2ac2dc22ac5c7530a0 Mon Sep 17 00:00:00 2001 From: Josmas Flores Date: Mon, 28 Mar 2011 20:28:18 +0100 Subject: [PATCH 1/3] Last two tests were broken, using the wrong collection --- .../data/mongodb/examples/hello/SimpleMongoTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mongodb-hello/src/test/java/org/springframework/data/mongodb/examples/hello/SimpleMongoTest.java b/mongodb-hello/src/test/java/org/springframework/data/mongodb/examples/hello/SimpleMongoTest.java index 9a95e2e..89ff754 100644 --- a/mongodb-hello/src/test/java/org/springframework/data/mongodb/examples/hello/SimpleMongoTest.java +++ b/mongodb-hello/src/test/java/org/springframework/data/mongodb/examples/hello/SimpleMongoTest.java @@ -99,7 +99,7 @@ public void queryingForDocuments() { p4.addAccount(new Account("719-100-0019", Account.Type.SAVINGS, 1209.10d)); mongoTemplate.insert(p4); - assertEquals(4, mongoTemplate.getCollection("HelloMongo").count()); + assertEquals(4, mongoTemplate.getCollection("MyCollection").count()); List result = mongoTemplate.find( new Query(where("age").lt(50)).and(where("accounts.balance").gt(1000.00d)), @@ -126,7 +126,7 @@ public void updatingDocuments() { p4.addAccount(new Account("719-100-0019", Account.Type.SAVINGS, 1209.10d)); mongoTemplate.insert(p4); - assertEquals(4, mongoTemplate.getCollection("HelloMongo").count()); + assertEquals(4, mongoTemplate.getCollection("MyCollection").count()); WriteResult wr = mongoTemplate.updateMulti( new Query(where("accounts.accountType").not().is(Account.Type.SAVINGS)), From fa1fa20d1c85ddb42113854aa5ee3bba43dff421 Mon Sep 17 00:00:00 2001 From: Josmas Flores Date: Tue, 29 Mar 2011 20:47:56 +0100 Subject: [PATCH 2/3] snapshot repository was not in pom --- mongodb-music/pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mongodb-music/pom.xml b/mongodb-music/pom.xml index 217b7de..80ef5fb 100644 --- a/mongodb-music/pom.xml +++ b/mongodb-music/pom.xml @@ -27,6 +27,12 @@ Spring Maven Milestone Repository http://maven.springframework.org/milestone + + spring-maven-snapshot + Springframework Maven SNAPSHOT Repository + true + http://maven.springframework.org/snapshot + querydsl Mysema QueryDsl From cc64e358059d94c49d6b387d7f4d8b39bffd4eea Mon Sep 17 00:00:00 2001 From: Josmas Flores Date: Tue, 29 Mar 2011 20:51:18 +0100 Subject: [PATCH 3/3] Changed name of the project from hello to music --- mongodb-music/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongodb-music/pom.xml b/mongodb-music/pom.xml index 80ef5fb..4be47bf 100644 --- a/mongodb-music/pom.xml +++ b/mongodb-music/pom.xml @@ -6,7 +6,7 @@ spring-data-mongodb-examples-music 0.0.1-SNAPSHOT - spring-data-mongodb-examples-hello + spring-data-mongodb-examples-music http://maven.apache.org