Skip to content

Commit e24ce2e

Browse files
committed
move query to MongoDBQuery
Signed-off-by: Otavio Santana <[email protected]>
1 parent 3e30d5d commit e24ce2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mongodb-driver/src/test/java/org/eclipse/jnosql/communication/mongodb/document/MongoDBQueryTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,24 @@
1515

1616
package org.eclipse.jnosql.communication.mongodb.document;
1717

18+
import jakarta.nosql.Sort;
1819
import jakarta.nosql.document.Document;
1920
import jakarta.nosql.document.DocumentCollectionManager;
21+
import jakarta.nosql.document.DocumentCondition;
2022
import jakarta.nosql.document.DocumentDeleteQuery;
2123
import jakarta.nosql.document.DocumentEntity;
2224
import jakarta.nosql.document.DocumentQuery;
2325
import org.eclipse.jnosql.communication.document.Documents;
2426
import org.junit.jupiter.api.Assertions;
2527
import org.junit.jupiter.api.BeforeAll;
28+
import org.junit.jupiter.api.DisplayName;
2629
import org.junit.jupiter.api.Test;
2730

2831
import java.io.IOException;
2932
import java.util.HashMap;
3033
import java.util.List;
3134
import java.util.Map;
35+
import java.util.Optional;
3236
import java.util.stream.Stream;
3337

3438
import static jakarta.nosql.document.DocumentDeleteQuery.delete;
@@ -45,6 +49,7 @@ public static void setUp() throws IOException {
4549
}
4650

4751
@Test
52+
@DisplayName("The query should execute A or B")
4853
public void shouldQuery() {
4954
DocumentEntity entity = getEntity();
5055
entityManager.insert(entity);

0 commit comments

Comments
 (0)