Search in sources :

Example 1 with ColumnDeleteQueryExecute

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

the class DefaultColumnEventPersistManagerTest method shouldFirePreDeleteQuery.

@Test
public void shouldFirePreDeleteQuery() {
    ColumnDeleteQuery query = delete().from("person").build();
    subject.firePreDeleteQuery(query);
    ArgumentCaptor<ColumnDeleteQueryExecute> captor = ArgumentCaptor.forClass(ColumnDeleteQueryExecute.class);
    verify(columnDeleteQueryExecute).fire(captor.capture());
    assertEquals(query, captor.getValue().getQuery());
}
Also used : ColumnDeleteQueryExecute(jakarta.nosql.mapping.column.ColumnDeleteQueryExecute) ColumnDeleteQuery(jakarta.nosql.column.ColumnDeleteQuery) Test(org.junit.jupiter.api.Test)

Aggregations

ColumnDeleteQuery (jakarta.nosql.column.ColumnDeleteQuery)1 ColumnDeleteQueryExecute (jakarta.nosql.mapping.column.ColumnDeleteQueryExecute)1 Test (org.junit.jupiter.api.Test)1