File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
mongodb-driver/src/test/java/org/eclipse/jnosql/communication/mongodb/document Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1717
1818import jakarta .nosql .document .Document ;
1919import jakarta .nosql .document .DocumentCollectionManager ;
20+ import jakarta .nosql .document .DocumentDeleteQuery ;
2021import jakarta .nosql .document .DocumentEntity ;
2122import jakarta .nosql .document .DocumentQuery ;
2223import org .eclipse .jnosql .communication .document .Documents ;
2324import org .junit .jupiter .api .Assertions ;
2425import org .junit .jupiter .api .BeforeAll ;
26+ import org .junit .jupiter .api .BeforeEach ;
2527import org .junit .jupiter .api .DisplayName ;
2628import org .junit .jupiter .api .Test ;
2729
@@ -44,6 +46,11 @@ public static void setUp() throws IOException {
4446 entityManager = ManagerFactorySupplier .INSTANCE .get ("database" );
4547 }
4648
49+ @ BeforeEach
50+ public void beforeEach () {
51+ DocumentDeleteQuery .delete ().from (COLLECTION_NAME ).delete (entityManager );
52+ }
53+
4754 @ Test
4855 @ DisplayName ("The query should execute A or B" )
4956 public void shouldQuery () {
You can’t perform that action at this time.
0 commit comments