Search in sources :

Example 1 with DocumentQueryExecute

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());
}
Also used : DocumentQuery(jakarta.nosql.document.DocumentQuery) DocumentQueryExecute(jakarta.nosql.mapping.document.DocumentQueryExecute) Test(org.junit.jupiter.api.Test)

Aggregations

DocumentQuery (jakarta.nosql.document.DocumentQuery)1 DocumentQueryExecute (jakarta.nosql.mapping.document.DocumentQueryExecute)1 Test (org.junit.jupiter.api.Test)1