Skip to content

Commit

Permalink
fixes test
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviojava committed Jul 11, 2018
1 parent 9fed2c8 commit 507190c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
import org.jnosql.diana.api.document.Documents;
import org.jnosql.diana.api.document.query.DocumentQueryBuilder;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import javax.xml.parsers.DocumentBuilder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
Expand Down Expand Up @@ -52,6 +54,12 @@ class DefaultCouchDBDocumentCollectionManagerTest {
entityManager = managerFactory.get("people");
}

@BeforeEach
public void setUp() {
DocumentDeleteQuery query = DocumentQueryBuilder.delete().from(COLLECTION_NAME).build();
entityManager.delete(query);
}

@Test
public void shouldInsert() {
DocumentEntity entity = getEntity();
Expand Down

0 comments on commit 507190c

Please sign in to comment.