Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to test step inside flow #4771

Open
fmbenhassine opened this issue Feb 25, 2025 · 0 comments
Open

Unable to test step inside flow #4771

fmbenhassine opened this issue Feb 25, 2025 · 0 comments
Labels
has: minimal-example Bug reports that provide a minimal complete reproducible example in: test type: bug

Comments

@fmbenhassine
Copy link
Contributor

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?

@fmbenhassine fmbenhassine added has: minimal-example Bug reports that provide a minimal complete reproducible example in: test type: bug labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has: minimal-example Bug reports that provide a minimal complete reproducible example in: test type: bug
Projects
None yet
Development

No branches or pull requests

1 participant