Skip to content

Unable to test step inside flow #4771

Open
@fmbenhassine

Description

@fmbenhassine

Discussed in #4518

Originally posted by heitormsilva December 16, 2023
Hi.

I have a configuration like this: job -> step (outerStep) -> flow (outerFlow) -> flow (innerFlow) -> step (innerStep).

I want to run a integration test of the innerStep, but I get a "java.lang.IllegalStateException: No Step found with name: [innerStep]".

If I run the test pointing to outerStep it works.

My test class is annotated with @SpringBootTest and @SpringBatchTest.
I'm running the step with: jobLauncherTestUtils.launchStep("innerStep");

How can I call only the innerStep?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions