spring-projects / spring-projects/spring-batch

enhance JobLauncherTestUtils.launchStep(...) to be able to test a local slave step from a partition step [BATCH-2225]

Open
#1,377 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: test status: waiting-for-triage type: enhancement
Dominant language
Java
Stars
3k
Forks
2.5k
Avg merge
6d 53m
Merged PRs (30d)
3

Description

Michael Pralow opened BATCH-2225 and commented

With version 2.2.6 it is not possible to test a step with JobLauncherTestUtils.launchStep(..) which itself is a local slave step for a partition step.

I tagged this issue as minor, i am not sure if a slave step should be testable like this, but it would sure be nice.


Affects: 2.2.6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at JobLauncherTestUtils.launchStep(...) and trace how it handles a local slave step from a partition step. Reproduce the reported limitation with the affected 2.2.6 scenario, then add or update coverage so this kind of slave step can be launched successfully for testing.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.