Skip to content

Commit

Permalink
chore: rename ES testkit utility method
Browse files Browse the repository at this point in the history
  • Loading branch information
aludwiko committed Jan 1, 2025
1 parent 16da721 commit 3c66760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public interface EventSourcedResult<R> {
*/
Object getUpdatedState();

boolean didEmitEvents();
boolean didPersistEvents();

/** @return All the events that were emitted by handling this command. */
List<Object> getAllEvents();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private[akka] final class EventSourcedResultImpl[R, S, E](

override def getUpdatedState: AnyRef = state.asInstanceOf[AnyRef]

override def didEmitEvents(): Boolean = !getAllEvents().isEmpty
override def didPersistEvents(): Boolean = !getAllEvents().isEmpty

override def getNextEventOfType[T](expectedClass: Class[T]): T =
if (!eventsIterator.hasNext) throw new NoSuchElementException("No more events found")
Expand Down

0 comments on commit 3c66760

Please sign in to comment.