use of jakarta.nosql.mapping.document.DocumentQueryExecute in project jnosql-diana by eclipse.
the class DefaultDocumentEventPersistManagerTest method shouldFirePreQuery.
@Test
public void shouldFirePreQuery() {
DocumentQuery query = DocumentQuery.select().from("collection").build();
subject.firePreQuery(query);
ArgumentCaptor<DocumentQueryExecute> captor = ArgumentCaptor.forClass(DocumentQueryExecute.class);
verify(documentQueryExecute).fire(captor.capture());
assertEquals(query, captor.getValue().getQuery());
}
Aggregations