Class AggregateTestHelper.PublishResponse

    • Method Detail

      • thenPublish

        public AggregateTestHelper.PublishBuilder thenPublish​(C command)
        Combinator to chain together multiple publishCommand commands. Uses sequence from most recent event.
        Parameters:
        command - the next command to publishCommand
      • thenPublish

        public AggregateTestHelper.PublishBuilder thenPublish​(java.util.function.Function<io.simplesource.kafka.model.AggregateUpdate<A>,​io.simplesource.kafka.model.ValueWithSequence<C>> commandGenerator)
        Combinator to chain together multiple publishCommand commands. Use this version if you need access to the current project, or if you want to mess with the sequence.
        Parameters:
        commandGenerator - a generate a new command and sequence from the latest project value and sequence