Mahmoud Ben Hassine
6eeaf4d256
Add warning for missing optional keys in DefaultJobParametersValidator
...
Before this commit, the DefaultJobParametersValidator
was failing when an optional key is missing.
This commit changes the default validator to only log
a warning in this case.
Resolves #4073
2023-09-18 17:25:12 +02:00
Sanghyuk Jung
31955a0690
Add constructor with Callable to CallableTaskletAdapter
...
Issue #3831
2023-09-14 16:10:42 +02:00
Mahmoud Ben Hassine
8a6c7ac3c5
Add utility method to get identifying job parameters
2023-09-13 16:21:45 +02:00
ChangYong
889dee7ab1
Add JavaTimeModule to Jackson2ExecutionContextSerializer
...
Resolves #3952
2023-09-13 11:02:30 +02:00
Mahmoud Ben Hassine
70e8a1c497
Add a JobRegistryBeanPostProcessor in the default batch configuration
...
Resolves #4245
2023-09-11 14:27:03 +02:00
Kim Seon Woo
3fe3b7fc5d
Add ability to start a job flow with a decider
...
Resolves #4411
2023-09-08 08:41:55 +02:00
Robert McNees
e36a44788d
Add option to provide a custom JobKeyGenerator in JdbcJobInstanceDao
...
Resolves #3926
2023-08-31 23:30:59 +02:00
Shaoqiang Lu
1add2830f5
Auto-detect the class/interface to be mocked
...
Issue #4426
2023-08-03 09:51:59 +02:00
Henning Poettker
58a4134c32
Explicit handling of nested splits in SplitState
...
Resolves #3857
2023-07-18 10:13:11 +02:00
Mahmoud Ben Hassine
f82c16b825
Fix javadoc errors and warnings
...
Resolves #1624
2023-07-06 06:46:26 +02:00
Mahmoud Ben Hassine
a68c444092
Remove unused imports
2023-07-05 08:03:49 +02:00
Mahmoud Ben Hassine
f0137bc54c
Remove redundant modifiers
2023-07-05 08:03:48 +02:00
Mahmoud Ben Hassine
0a1cdb095f
Mark fields as final where appropriate
2023-07-05 08:03:48 +02:00
Mahmoud Ben Hassine
241e37e672
Remove concatenation with empty string
2023-07-05 08:03:47 +02:00
Mahmoud Ben Hassine
b5e7269847
Remove unnecessary return statements
2023-07-04 21:17:42 +02:00
Mahmoud Ben Hassine
5c8cb7663f
Make inner classes static
2023-07-04 21:03:55 +02:00
Mahmoud Ben Hassine
167f3c427d
Remove usage of raw parametrized types
2023-07-04 19:03:18 +02:00
Mahmoud Ben Hassine
96f8d6bd35
Replace anonymous types with lambda expressions or method references
2023-07-04 18:50:16 +02:00
Mahmoud Ben Hassine
018fcf4799
Refactor tests in spring-batch-core
...
- Remove unused resources
- Fix logging libraries conflicts
- Merge duplicate data source configuration
- Merge scattered DDL scripts
- Replace usage of DataSourceInitializer with Spring JDBC test utilities
2023-06-23 11:30:04 +02:00
Mahmoud Ben Hassine
ee30af4789
Remove redundant "extends Object"
2023-06-22 11:17:13 +02:00
Mahmoud Ben Hassine
51f6357e91
Move ObservabilitySampleStepTests to spring-batch-core
...
This test class dot not belong to the spring-batch-test module.
2023-06-22 10:22:46 +02:00
Mahmoud Ben Hassine
dc6a4eb12d
Replace hardcoded charsets with StandardCharsets
2023-06-22 09:38:50 +02:00
Mahmoud Ben Hassine
510d4768dd
Remove tests that do not belong to Spring Batch test suite
...
Those tests test a class from Spring Framework.
2023-06-21 17:55:26 +02:00
Mahmoud Ben Hassine
502253bdd9
Remove unused class in tests
2023-06-21 17:53:15 +02:00
Mahmoud Ben Hassine
fd8f65b761
Remove unused bean in JobLoaderConfigurationTests
2023-06-21 17:47:01 +02:00
Mahmoud Ben Hassine
93d911e100
Use lambdas and method references where appropriate
2023-06-12 16:43:46 +02:00
Mahmoud Ben Hassine
c5b4f1a777
Remove unnecessary boxing/unboxing
2023-06-12 16:17:32 +02:00
Mahmoud Ben Hassine
7babb341f5
Replace for loops with enhanced for loop where appropriate
2023-06-12 16:05:44 +02:00
Mahmoud Ben Hassine
8c5456cff6
Replace for loops with String.repeat where appropriate
2023-06-12 16:00:45 +02:00
Mahmoud Ben Hassine
0bfe31e569
Remove stack traces from tests
2023-06-07 15:54:19 +02:00
Mahmoud Ben Hassine
7f80b7230b
Remove System.err.println from tests
2023-06-07 15:47:56 +02:00
Mahmoud Ben Hassine
98c426ca4f
Remove System.out.println from tests
2023-06-07 15:47:56 +02:00
Mahmoud Ben Hassine
12b412f60a
Use Objects#equals where appropriate
2023-06-05 14:09:32 +02:00
Mahmoud Ben Hassine
92159cbc2b
Use diamond operator where appropriate
2023-06-05 13:48:49 +02:00
Mahmoud Ben Hassine
106c4a589d
Replace single operations inside loops with bulk methods
2023-06-05 13:14:01 +02:00
Mahmoud Ben Hassine
6d3e48a0bc
Simplify assertions in tests
2023-06-05 13:08:15 +02:00
Mahmoud Ben Hassine
c25cd55901
Upgrade spring-javaformat maven plugin to version 0.0.39
2023-06-05 11:11:48 +02:00
Mahmoud Ben Hassine
7f304a1a79
Refine contribution #4364
...
Add integration test
Related to #4246
2023-05-16 07:01:47 +02:00
jinwoo-Bae
e329b61d18
Fix retrieval of job parameters in SimpleJobExplorer#getJobExecutions
...
Before this commit, SimpleJobExplorer#getJobExecutions returned
job executions with wrong job parameters, ie a job execution could
have the parameter of another execution.
This commit fixes the implementation so that each returned job
execution has its own parameters.
Resolves #4246
2023-05-16 06:57:47 +02:00
Mahmoud Ben Hassine
4a4c822274
Temporarily disable testWriteRetryOnTwoExceptions
...
Issue #4370
2023-05-11 13:52:57 +02:00
Sukanth Gunda
ef5ef1e6c6
Disable Docker-based tests when Docker is not available
...
Resolves #4360
2023-05-08 22:32:44 +02:00
Henning Poettker
4faa842bb1
Upgrade to Mockito 5
...
Issue #4366
2023-05-04 00:09:11 +02:00
Mahmoud Ben Hassine
972951a40a
Remove unused imports and apply imports code style
2023-04-11 16:28:36 +02:00
Henning Poettker
e61065ab00
Reduce use of deprecated APIs
2023-03-29 15:34:48 +02:00
Mahmoud Ben Hassine
dbdbf787e6
Update Javadocs
2023-03-21 17:51:53 +01:00
Glenn Renfro
386277ddc7
Fix tiny misspelling in the sybase integration test comments
2023-03-21 16:18:21 +01:00
Tatiana Slednikova
145c31b86f
Change JobParameters to HashMap
...
Resolves #4179
2023-03-21 15:01:06 +01:00
jinwoo-Bae
2cc0be4a0c
Replace usage of deprecated jobOperator#start method with newer version
...
Related to #4303
2023-02-21 15:52:25 +01:00
Stephan Freund
5fae33185f
Fix TARGET_NAME_PREFIX in StepScope
...
Resolves #3936
2023-02-21 10:47:29 +01:00
Mahmoud Ben Hassine
0103ef025d
Fix object graph deletion in SimpleJobRepository#deleteJobInstance
...
Before this commit, SimpleJobRepository#deleteJobInstance
was only deleting the given job instance and not the entire
object graph, which leads to data inconsistency (orphan job
executions and invalid foreign keys).
This commit fixes the contract and the implementation of the method
to delete the entire object graph.
Resolves #4250
2023-02-20 09:57:08 +01:00