Search in sources :

Example 1 with ColumnQueryExecute

use of jakarta.nosql.mapping.column.ColumnQueryExecute in project jnosql-diana by eclipse.

the class DefaultColumnEventPersistManagerTest method shouldFirePreQuery.

@Test
public void shouldFirePreQuery() {
    ColumnQuery query = select().from("person").build();
    subject.firePreQuery(query);
    ArgumentCaptor<ColumnQueryExecute> captor = ArgumentCaptor.forClass(ColumnQueryExecute.class);
    verify(columnQueryExecute).fire(captor.capture());
    assertEquals(query, captor.getValue().getQuery());
}
Also used : ColumnQuery(jakarta.nosql.column.ColumnQuery) ColumnQueryExecute(jakarta.nosql.mapping.column.ColumnQueryExecute) Test(org.junit.jupiter.api.Test)

Aggregations

ColumnQuery (jakarta.nosql.column.ColumnQuery)1 ColumnQueryExecute (jakarta.nosql.mapping.column.ColumnQueryExecute)1 Test (org.junit.jupiter.api.Test)1