Class HistoryEventProcessor
java.lang.Object
software.amazon.lambda.durable.testing.HistoryEventProcessor
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<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 structuredTestResult.
-
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 structuredTestResult.- Type Parameters:
O- the handler output type- Parameters:
events- the raw history events from the GetDurableExecutionHistory APIoutputType- the expected output type for deserialization- Returns:
- a TestResult containing the execution status, output, and operation details
-