@Test public void readLastReturnsNullForMissingStream() { EventRecord<TestEventType> actual = repository.readLast(streamId); assertThat(actual, nullValue()); }
@Test public void readLastReturnsNullForMissingStream() { EventRecord<TestEventType> actual = repository.readLast(streamId); assertThat(actual, nullValue()); }
@Test public void readLastEvent() { append(new TestEventType("payload-1")); append(new TestEventType("payload-2")); EventRecord<TestEventType> actual = repository.readLast(streamId); assertThat(actual.getEvent().getValue(), equalTo("payload-2")); }
@Test public void readLastEvent() { append(new TestEventType("payload-1")); append(new TestEventType("payload-2")); EventRecord<TestEventType> actual = repository.readLast(streamId); assertThat(actual.getEvent().getValue(), equalTo("payload-2")); }