use of jakarta.nosql.mapping.document.DocumentQueryMapper.DocumentMapperDeleteFrom in project jnosql-diana by eclipse.
the class DefaultDocumentQueryMapperTest method shouldReturnDeleteFrom.
@Test
public void shouldReturnDeleteFrom() {
DocumentMapperDeleteFrom deleteFrom = queryMapper.deleteFrom(Person.class);
assertNotNull(deleteFrom);
}
use of jakarta.nosql.mapping.document.DocumentQueryMapper.DocumentMapperDeleteFrom in project jnosql-diana by eclipse.
the class DefaultDocumentMapperDeleteBuilderTest method shouldReturnDeleteFrom.
@Test
public void shouldReturnDeleteFrom() {
DocumentMapperDeleteFrom documentFrom = mapperBuilder.deleteFrom(Person.class);
DocumentDeleteQuery query = documentFrom.build();
DocumentDeleteQuery queryExpected = delete().from("Person").build();
assertEquals(queryExpected, query);
}
Aggregations