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