Search in sources :

Example 1 with DocumentDeleteFrom

use of org.jnosql.diana.api.document.query.DocumentDeleteFrom in project jnosql-artemis by eclipse.

the class DefaultDocumentMapperDeleteBuilderTest method shouldReturnDeleteFrom.

@Test
public void shouldReturnDeleteFrom() {
    DocumentDeleteFrom DocumentFrom = mapperBuilder.deleteFrom(Person.class);
    DocumentDeleteQuery query = DocumentFrom.build();
    DocumentDeleteQuery queryExpected = delete().from("Person").build();
    assertEquals(queryExpected, query);
}
Also used : DocumentDeleteFrom(org.jnosql.diana.api.document.query.DocumentDeleteFrom) DocumentDeleteQuery(org.jnosql.diana.api.document.DocumentDeleteQuery) Test(org.junit.jupiter.api.Test)

Example 2 with DocumentDeleteFrom

use of org.jnosql.diana.api.document.query.DocumentDeleteFrom in project jnosql-artemis by eclipse.

the class DefaultDocumentQueryMapperBuilderTest method shouldReturnDeleteFrom.

@Test
public void shouldReturnDeleteFrom() {
    DocumentDeleteFrom deleteFrom = mapperBuilder.deleteFrom(Person.class);
    assertNotNull(deleteFrom);
}
Also used : DocumentDeleteFrom(org.jnosql.diana.api.document.query.DocumentDeleteFrom) Test(org.junit.jupiter.api.Test)

Aggregations

DocumentDeleteFrom (org.jnosql.diana.api.document.query.DocumentDeleteFrom)2 Test (org.junit.jupiter.api.Test)2 DocumentDeleteQuery (org.jnosql.diana.api.document.DocumentDeleteQuery)1