use of jakarta.nosql.mapping.keyvalue.KeyValueEntityPostPersist in project jnosql-diana by eclipse.
the class DefaultKeyValueEventPersistManagerTest method shouldFirePostColumn.
@Test
public void shouldFirePostColumn() {
KeyValueEntity entity = KeyValueEntity.of("key", "value");
subject.firePostKeyValue(entity);
ArgumentCaptor<KeyValueEntityPostPersist> captor = ArgumentCaptor.forClass(KeyValueEntityPostPersist.class);
verify(keyValueEntityPostPersistEvent).fire(captor.capture());
KeyValueEntityPostPersist captorValue = captor.getValue();
assertEquals(entity, captorValue.getEntity());
}
Aggregations