Search in sources :

Example 11 with LifecycleFlags

use of io.spine.server.entity.LifecycleFlags in project core-java by SpineEventEngine.

the class AggregateStorageShould method read_history_of_deleted_aggregate.

@Test
public void read_history_of_deleted_aggregate() {
    final LifecycleFlags deletedRecordFlags = LifecycleFlags.newBuilder().setDeleted(true).build();
    storage.writeLifecycleFlags(id, deletedRecordFlags);
    writeAndReadEventTest(id, storage);
}
Also used : LifecycleFlags(io.spine.server.entity.LifecycleFlags) Test(org.junit.Test)

Aggregations

LifecycleFlags (io.spine.server.entity.LifecycleFlags)11 Test (org.junit.Test)8 EntityRecord (io.spine.server.entity.EntityRecord)2 MemoizedValue (io.spine.server.entity.storage.EntityColumn.MemoizedValue)1 EntityRecordWithColumns (io.spine.server.entity.storage.EntityRecordWithColumns)1