Uses of Class
com.agentforge4j.testkit.assertion.WorkflowRunAssert
Packages that use WorkflowRunAssert
-
Uses of WorkflowRunAssert in com.agentforge4j.testkit.assertion
Methods in com.agentforge4j.testkit.assertion that return WorkflowRunAssertModifier and TypeMethodDescriptionWorkflowRunAssert.approvalDecision(String stepId, ApprovalOutcome outcome) Asserts an approval decision with a non-empty reason/note was recorded at the given step.WorkflowRunAssert.approvalRequested(String stepId) Asserts an approval was requested at the given step.WorkflowRunAssert.artifactAbsent(String path) Asserts no file was created at the given path.WorkflowRunAssert.artifactPresent(String path) Alias ofcreatedFile(String).static WorkflowRunAssertWorkflowRunAssert.assertThat(WorkflowRunResult result) Begins an assertion chain over a run result.WorkflowRunAssert.contextEquals(String key, String expected) Asserts a context value equals the expected control value.WorkflowRunAssert.contextHas(String key) Asserts a context key is present.WorkflowRunAssert.contextHasField(String key, String field) Asserts a JSON context value has the given top-level field.WorkflowRunAssert.contextMatchesRegex(String key, String regex) Asserts a context value matches the given regular expression.WorkflowRunAssert.contextMissing(String key) Asserts a context key is absent.WorkflowRunAssert.contextNonEmpty(String key) Asserts a context key is present and its value is non-empty.WorkflowRunAssert.createdFile(String path) Asserts a file was created at the given path.WorkflowRunAssert.didNotEmitEvent(WorkflowEventType type) Asserts no event of the given type was emitted.WorkflowRunAssert.didNotInvokeTool(String capabilityId) Asserts the given tool capability was never invoked.WorkflowRunAssert.didNotVisitStep(String stepId) Asserts the step was never visited.WorkflowRunAssert.emittedEvent(WorkflowEventType type) Asserts an event of the given type was emitted.WorkflowRunAssert.eventCount(WorkflowEventType type, int expected) Asserts the exact number of events of the given type.WorkflowRunAssert.eventsInOrder(WorkflowEventType... types) Asserts the given event types occur, in order, as a subsequence of the emitted events.WorkflowRunAssert.failedBecause(String fragment) Asserts the run failed and its recorded failure reason contains the given fragment.WorkflowRunAssert.failedWith(FailureKind kind) Asserts the run failed with the given failure kind.WorkflowRunAssert.forEachIterations(int expected) Asserts the iteration count; an alias ofloopIterations(int)over the single canonicalLOOP_ITERATION_STARTEDsource.WorkflowRunAssert.hasStatus(WorkflowStatus expected) Asserts the run's final status.WorkflowRunAssert.inputRequested(String stepId) Asserts input was requested at the given step.WorkflowRunAssert.invokedTool(String capabilityId) Asserts the given tool capability was invoked.WorkflowRunAssert.isCompleted()Asserts the run completed.WorkflowRunAssert.isFailed()Asserts the run failed.WorkflowRunAssert.loopIterations(int expected) Asserts the iteration count, counted fromLOOP_ITERATION_STARTED.WorkflowRunAssert.outputsHaveNoForbiddenTerms(Collection<String> forbiddenTerms) Asserts that no forbidden term appears in any generated run output — neither in a context value nor in a captured file's content.WorkflowRunAssert.providerCallCount(int expected) Asserts the number of provider (LLM) calls (counted fromLLM_CALL_COMPLETED).WorkflowRunAssert.providerCallCountForStep(String stepId, int expected) Asserts the number of provider (LLM) calls recorded for a specific step, regardless of dispatch or attempt.WorkflowRunAssert.providerCallTier(ModelTier tier) Asserts at least one provider call resolved its model from the given tier.WorkflowRunAssert.reachedPendingState(WorkflowStatus status) Asserts the run is in the given pending state.WorkflowRunAssert.stepsInOrderedSubsequence(String... stepIds) Asserts the given step ids occur, in order, as a subsequence of the visited steps.WorkflowRunAssert.stepVisitCount(String stepId, int expected) Asserts the step was visited exactly the expected number of times.WorkflowRunAssert.tokenTotals(int expectedTotal) Asserts the deterministic total token usage recorded on the run.WorkflowRunAssert.toolCallCount(int expected) Asserts the number of tool invocations (counted fromTOOL_INVOCATION_REQUESTED).WorkflowRunAssert.visitedStep(String stepId) Asserts the step was visited at least once.