Skip to content

Commit 06ba201

Browse files
committed
feat: update mongodd template
Signed-off-by: Otavio Santana <[email protected]>
1 parent 3680b37 commit 06ba201

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jnosql-mongodb/src/test/java/org/eclipse/jnosql/databases/mongodb/mapping/DefaultMongoDBTemplateTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void shouldDeleteWithCollectionName() {
106106
void shouldDeleteWithEntity() {
107107
Bson filter = eq("name", "Poliana");
108108
template.delete(BirthdayPerson.class, filter);
109-
Mockito.verify(manager).delete("Person", filter);
109+
Mockito.verify(manager).delete("BirthdayPerson", filter);
110110
}
111111

112112
@Test
@@ -154,7 +154,7 @@ void shouldSelectWithEntity() {
154154
.asList(Element.of("_id", "Poliana"),
155155
Element.of("age", 30)));
156156
Bson filter = eq("name", "Poliana");
157-
Mockito.when(manager.select("Person", filter))
157+
Mockito.when(manager.select("BirthdayPerson", filter))
158158
.thenReturn(Stream.of(entity));
159159
Stream<BirthdayPerson> stream = template.select(BirthdayPerson.class, filter);
160160
Assertions.assertNotNull(stream);
@@ -212,7 +212,7 @@ void shouldAggregateWithEntity() {
212212
};
213213

214214
template.aggregate(BirthdayPerson.class, predicates);
215-
Mockito.verify(manager).aggregate("Person", predicates);
215+
Mockito.verify(manager).aggregate("BirthdayPerson", predicates);
216216
}
217217

218218
@Test
@@ -230,7 +230,7 @@ void shouldCountByFilterWithEntity() {
230230

231231
template.count(BirthdayPerson.class, filter);
232232

233-
Mockito.verify(manager).count("Person", filter);
233+
Mockito.verify(manager).count("BirthdayPerson", filter);
234234
}
235235

236236
@Test

0 commit comments

Comments
 (0)