use of io.spine.server.event.EventStore in project core-java by SpineEventEngine.
the class EmptyEventStoreTest method notAppendAll.
@Test
@DisplayName("do nothing on `appendAll(Iterable<Event>)`")
void notAppendAll() {
EventStore store = new EmptyEventStore();
store.appendAll(ImmutableList.of(Event.getDefaultInstance()));
assertEmpty(store);
}
use of io.spine.server.event.EventStore in project core-java by SpineEventEngine.
the class EmptyEventStoreTest method beOpen.
@Test
@DisplayName("be open and close")
void beOpen() throws Exception {
EventStore eventStore = new EmptyEventStore();
assertTrue(eventStore.isOpen());
eventStore.close();
assertFalse(eventStore.isOpen());
}
Aggregations