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());
}
Aggregations