Class HistoryEventProcessor

java.lang.Object
software.amazon.lambda.durable.testing.HistoryEventProcessor

public class HistoryEventProcessor extends Object
Processes execution history events from the GetDurableExecutionHistory API into TestResult objects. Used by CloudDurableTestRunner and AsyncExecution to convert cloud execution history into testable results.
  • Constructor Details

    • HistoryEventProcessor

      public HistoryEventProcessor()
  • Method Details

    • processEvents

      public <O> TestResult<O> processEvents(List<software.amazon.awssdk.services.lambda.model.Event> events, TypeToken<O> outputType)
      Processes a list of execution history events into a structured TestResult.
      Type Parameters:
      O - the handler output type
      Parameters:
      events - the raw history events from the GetDurableExecutionHistory API
      outputType - the expected output type for deserialization
      Returns:
      a TestResult containing the execution status, output, and operation details