Mahmoud Ben Hassine
03918b2929
Refactor DefaultJobKeyGenerator to use org.springframework.util.DigestUtils
2021-09-09 21:10:00 +02:00
Mahmoud Ben Hassine
36b1d0af3c
Remove unused parameter in SqlPagingQueryUtils#generateLimitGroupedSqlQuery
2021-09-09 21:01:54 +02:00
Mahmoud Ben Hassine
497438a318
Add assertions to reject null values in JobParameter
...
Resolves #3913
2021-09-09 17:00:05 +02:00
Glenn Renfro
6c619b9f94
FlatFileItemWriter now uses charset to determine default encoding
...
It now matches the encoding scheme of FlatFileItemReader
Resolves #1154
2021-09-09 15:03:58 +02:00
Philippe Marschall
c9d827ca11
Avoid string conversion in ExecutionContextSerializer tests
...
Avoid the byte to string to byte conversion in
AbstractExecutionContextSerializerTests.
2021-09-03 21:34:09 +02:00
Henning Pöttker
fce9a48080
Make ScopeConfiguration publicly accessible
...
When using a hierarchy of Spring contexts, custom scopes
are not visible in child contexts. With this change, it is
now possible for users to import the configuration class
into child contexts and use job and step scope within them.
Issue #3958
2021-09-03 21:09:29 +02:00
Rémi Kaeffer
a6d68138ff
Fix double "the" typo everywhere in source code
2021-09-03 19:07:19 +02:00
Parikshit Dutta
637226064c
Change default value of DATE_VAL to null for non-date type job parameters
...
Resolves #1577
2021-09-03 16:03:26 +02:00
Henning Pöttker
9f4127fb1d
Fix HippyMethodInvoker by not considering unsuitable candidates
...
Resolves #3794
2021-09-03 14:43:54 +02:00
tinh cao
324a769aa0
Remove whitespace to support multiple execution statement
...
Issue #3861
2021-09-03 11:30:15 +02:00
Mahmoud Ben Hassine
e2c0b891c8
Deprecate support for Neo4j
...
This commit deprecates support for Neo4j
in favor of the spring-batch-neo4j extension
Resolves #3956
2021-09-02 13:19:53 +02:00
Mahmoud Ben Hassine
d0ab497312
Fix step execution retrieval in SimpleJobExplorer#getLastJobExecution
...
Before this commit, SimpleJobExplorer#getLastJobExecution returned
the last job execution without fetching its step executions and
their execution contexts.
This commit fixes the implementation to load the entire object
graph as done in SimpleJobExplorer#getJobExecution.
Resolves #3943 #3944
2021-08-27 14:00:41 +02:00
Mahmoud Ben Hassine
de9ce2d0cc
Use JdbcTestUtils where appropriate in tests
2021-08-26 22:12:34 +02:00
Mahmoud Ben Hassine
3742931c4c
Remove unused resources
2021-08-26 17:03:32 +02:00
Mahmoud Ben Hassine
8400b16205
Remove unused dependencies
2021-08-25 18:54:36 +02:00
Taeik Lim
26fc468eb2
Use getDataSource method in DefaultBatchConfigurer
2021-08-25 14:16:22 +02:00
Daniel Franco
68b77d0d8e
Update maven wrapper version to 3.8.2
2021-08-25 13:53:57 +02:00
Mahmoud Ben Hassine
d206de1cd0
Clean up schema versions in XML files of tests/samples
...
The schema version in JobParserWrongSchemaInRootTests-context.xml
has not been removed as it is used on purpose for
JobParserExceptionTests#testWrongSchemaInRoot.
Resolves #913
2021-08-24 11:51:37 +02:00
Sanghyuk Jung
4d67858c7c
Fix typos in document for configuring steps
2021-08-18 21:29:20 +02:00
Ilya Samartsev
595abff170
Fix NPE in sql exception translation
...
Resolves #3968
2021-08-18 20:06:41 +02:00
Mahmoud Ben Hassine
8d3201c91e
Update Spring dependencies to latest snapshots
2021-08-18 09:26:58 +02:00
Mahmoud Ben Hassine
da9dbdeeac
Fix JsonSupportIntegrationTests
2021-08-18 08:59:26 +02:00
Mahmoud Ben Hassine
4b3bcac082
Update datasource configuration in samples/tests
2021-08-17 22:52:45 +02:00
Mahmoud Ben Hassine
36b63ed283
Remove usage of master/slave terminology
2021-08-17 21:59:30 +02:00
Mahmoud Ben Hassine
24152e7a57
Fix references to the old master branch with the new branch name
2021-08-17 21:34:55 +02:00
Mahmoud Ben Hassine
bb3809cf55
Remove deprecated APIs
...
Resolves #3836
2021-08-17 21:14:53 +02:00
Mahmoud Ben Hassine
f8bdf5521e
Remove the Map based job repository/explorer and their DAOs
...
This commit removes the deprecated Map-based job repository
and job explorer implementations with their respective DAOs.
Using the `EnableBatchProcessing` annotation now requires a
datasource bean to be defined in the application context.
This will be reviewed as part of #3942 .
This commit is a first pass that updates related tests to use
the JDBC-based job repository/explorer with an embedded database.
A second pass should be done to improve tests by caching/reusing
embedded databases if possible.
Issue #3836
2021-08-17 16:23:46 +02:00
Mahmoud Ben Hassine
d5509d2444
Remove SQLFire support
...
Resolves #3839
2021-08-14 08:53:16 +02:00
Mahmoud Ben Hassine
f995c83b16
Extract count key as constant in ResourcesItemReader
2021-08-12 22:12:00 +02:00
Mahmoud Ben Hassine
1b829471ee
Remove unused constant in CustomerCreditUpdatePreparedStatementSetter
2021-08-12 22:05:59 +02:00
Mahmoud Ben Hassine
f4befae548
Fix typo in test method name
2021-08-12 22:01:53 +02:00
Mahmoud Ben Hassine
f83ba20173
Remove usage of reflection to call session.close in HibernateItemReaderHelper
2021-08-12 21:59:55 +02:00
Philippe Marschall
1480dc5fd2
Use default methods in TestExecutionListener
...
Remove empty implementation methods.
2021-08-12 21:49:05 +02:00
Mahmoud Ben Hassine
27e11b52f9
Remove usage of deprecated APIs
...
Resolves #3838
2021-08-12 15:51:02 +02:00
Parikshit Dutta
86e1b0a3a9
Updated graceful shutdown sample by removing deprecated code
...
Resolves #3901
2021-08-11 21:27:55 +02:00
Gregor Riegler
7a3d26c9f7
simplify boolean expression
...
Co-authored-by: Moderne <team@moderne.io >
2021-08-11 20:50:34 +02:00
Philippe Marschall
6d5a4d5352
Remove Reflection from StepScopeTestExecutionListener
...
Call methods on TestContext directly
2021-08-11 20:32:21 +02:00
Mahmoud Ben Hassine
31899d5fc3
Remove usage of deprecated APIs
...
Issue #3838
2021-08-11 20:23:12 +02:00
Henning Pöttker
64c09c523e
Replaces deprecated interfaces
...
Replaces the deprecated
- type InstantiationAwareBeanPostProcessorAdapter
- type GenericTypeResolver
- method StringUtils::isEmpty
- field BigDecimal::ROUND_HALF_UP
Issue #3838
2021-08-11 15:20:18 +02:00
Mahmoud Ben Hassine
b9790d11ba
Fix datasource initialization in remote partitioning samples
2021-08-11 14:06:04 +02:00
Mahmoud Ben Hassine
7bbbd4f667
Refine contribution #3962
...
- Fix failing tests
- Update year in license headers
Related to #3838
2021-08-10 17:50:41 +02:00
Sebastiano Valle
24422b5163
Remove some deprecated APIs from tests
...
The following deprecated APIs are not in use anymore in the project's tests:
- `org.junit.rules.ExpectedException#none`
- `org.mockito.MockitoAnnotations#initMocks`
- `org.mockito.Mockito#verifyZeroInteractions`
Issue #3838
2021-08-10 17:48:21 +02:00
Henning Pöttker
7242f8fe77
Replace deprecated TransactionSynchronizationAdapter
...
Issue #3838
2021-08-10 15:28:02 +02:00
Philippe Marschall
3d0cb90590
Remove double brace initialization
...
Remove double brace collection initialization as
it is considered bad practice.
2021-08-10 12:56:58 +02:00
Philippe Marschall
f15edd414a
Fix some raw types
2021-08-10 12:41:19 +02:00
Philippe Marschall
c9e06b2a7f
Don't call wrapper constructors directly
...
The constructors of the wrapper classes for primitives (Double,
Integer, Long) have been deprecated since JDK 9 and should no longer be
called. Instead the static factory #valueOf should be used.
2021-08-10 11:54:25 +02:00
Philippe Marschall
1f3dd5f401
Replace Assert.assertThat with MatcherAssert.assertThat
...
Assert.assertThat is deprecated with MatcherAssert.assertThat as the
replacement.
2021-08-09 21:04:52 +02:00
Philippe Marschall
2aa94d09d1
Replace #initMocks with MockitoRule
...
Replace all references of MockitoAnnotations#initMocks with the
MockitoRule JUnit rule.
2021-08-09 18:33:39 +02:00
Henning Pöttker
8258325413
Refactor deprecated method extractDatabaseMetaData
...
Issue #3838
2021-08-09 18:22:35 +02:00
Henning Poettker
0ad68037b6
Reduce naming collisions in consecutive tests
2021-08-09 13:36:31 +02:00