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