Mahmoud Ben Hassine
b2b5b48e77
Fix XStreamUnmarshallingTests
...
This commit adds an explicit type permission to unmarshall
the `Trade` class.
2022-03-16 17:55:33 +01:00
Marten Deinum
cf16aec7ca
Provide constructors for injection
...
Currently when reading/writing JSON and using the reader/marshaller provided
and you want a custom Gson or ObjectMapper instance it still creates the not
needed instance. Move the construction to a constructor and provide a constructor
to directly pass in the pre-configured Gson or ObjectMapper instance.
The same approach is used in Spring itself where Gson or ObjectMapper instances
can be passed in.
2021-02-23 16:51:43 +01:00
Mahmoud Ben Hassine
0a116824cb
Polish contribution cbdb251441
...
* Fix assertion messages in tests
* Use transactional tests instead of a separate
service with a transactional method
2020-11-20 15:01:18 +01:00
Antoine Kapps
95f11facf4
Fix incorrect behaviour of RepositoryItemReader#jumpToItem() on restart
...
* Corrects unit tests with expected behavior.
* Creates integration tests highlighting Hibernate lazy-loading failure if the reader has requested the page on open().
Issue #1074
2020-11-20 15:00:47 +01:00
mikeldpl
a7092a21e4
Added @Nullable annotation to overriding methods.
...
Resolves BATCH-2839
2019-09-17 16:50:44 +02:00
Michael Minella
fda70ccbcb
Fixed integration test breaking build
2019-07-25 17:31:25 -05:00
Mahmoud Ben Hassine
56ef0f35a9
Polish 229fed4e24
...
- Remove duplicate code
- Add assertions in `testPersist`
- Add integration tests
2019-05-23 15:22:57 +02:00
Spring Operator
d8fc58338d
URL Cleanup
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# Fixed URLs
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* [ ] http://www.apache.org/licenses/ with 2 occurrences migrated to:
https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/ ) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 1796 occurrences migrated to:
https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0 ) result 200).
2019-03-22 10:08:19 +01:00
Spring Operator
8762e34115
URL Cleanup
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# Fixed URLs
## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.
* http://xmlns.jcp.org/xml/ns/javaee/jobXML_1_0.xsd (301) with 29 occurrences migrated to:
https://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/jobXML_1_0.xsd ([https](https://xmlns.jcp.org/xml/ns/javaee/jobXML_1_0.xsd ) result InvalidMediaTypeException).
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd (301) with 1 occurrences migrated to:
https://hibernate.org/dtd/hibernate-mapping-3.0.dtd ([https](https://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd ) result 200).
* http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd (301) with 2 occurrences migrated to:
https://hibernate.org/dtd/hibernate-mapping-3.0.dtd ([https](https://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd ) result 200).
* http://www.springframework.org/schema/aop/spring-aop-2.5.xsd with 5 occurrences migrated to:
https://www.springframework.org/schema/aop/spring-aop-2.5.xsd ([https](https://www.springframework.org/schema/aop/spring-aop-2.5.xsd ) result 200).
* http://www.springframework.org/schema/aop/spring-aop-3.1.xsd with 21 occurrences migrated to:
https://www.springframework.org/schema/aop/spring-aop-3.1.xsd ([https](https://www.springframework.org/schema/aop/spring-aop-3.1.xsd ) result 200).
* http://www.springframework.org/schema/aop/spring-aop.xsd with 27 occurrences migrated to:
https://www.springframework.org/schema/aop/spring-aop.xsd ([https](https://www.springframework.org/schema/aop/spring-aop.xsd ) result 200).
* http://www.springframework.org/schema/batch-integration/spring-batch-integration.xsd with 16 occurrences migrated to:
https://www.springframework.org/schema/batch-integration/spring-batch-integration.xsd ([https](https://www.springframework.org/schema/batch-integration/spring-batch-integration.xsd ) result 200).
* http://www.springframework.org/schema/batch/spring-batch-2.0.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/batch/spring-batch-2.0.xsd ([https](https://www.springframework.org/schema/batch/spring-batch-2.0.xsd ) result 200).
* http://www.springframework.org/schema/batch/spring-batch-2.1.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/batch/spring-batch-2.1.xsd ([https](https://www.springframework.org/schema/batch/spring-batch-2.1.xsd ) result 200).
* http://www.springframework.org/schema/batch/spring-batch-2.2.xsd with 99 occurrences migrated to:
https://www.springframework.org/schema/batch/spring-batch-2.2.xsd ([https](https://www.springframework.org/schema/batch/spring-batch-2.2.xsd ) result 200).
* http://www.springframework.org/schema/batch/spring-batch-3.0.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/batch/spring-batch-3.0.xsd ([https](https://www.springframework.org/schema/batch/spring-batch-3.0.xsd ) result 200).
* http://www.springframework.org/schema/batch/spring-batch.xsd with 51 occurrences migrated to:
https://www.springframework.org/schema/batch/spring-batch.xsd ([https](https://www.springframework.org/schema/batch/spring-batch.xsd ) result 200).
* http://www.springframework.org/schema/beans/spring-beans-2.0.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/beans/spring-beans-2.0.xsd ([https](https://www.springframework.org/schema/beans/spring-beans-2.0.xsd ) result 200).
* http://www.springframework.org/schema/beans/spring-beans-2.5.xsd with 14 occurrences migrated to:
https://www.springframework.org/schema/beans/spring-beans-2.5.xsd ([https](https://www.springframework.org/schema/beans/spring-beans-2.5.xsd ) result 200).
* http://www.springframework.org/schema/beans/spring-beans-3.1.xsd with 145 occurrences migrated to:
https://www.springframework.org/schema/beans/spring-beans-3.1.xsd ([https](https://www.springframework.org/schema/beans/spring-beans-3.1.xsd ) result 200).
* http://www.springframework.org/schema/beans/spring-beans.xsd with 166 occurrences migrated to:
https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd ) result 200).
* http://www.springframework.org/schema/context/spring-context-2.5.xsd with 8 occurrences migrated to:
https://www.springframework.org/schema/context/spring-context-2.5.xsd ([https](https://www.springframework.org/schema/context/spring-context-2.5.xsd ) result 200).
* http://www.springframework.org/schema/context/spring-context-3.1.xsd with 2 occurrences migrated to:
https://www.springframework.org/schema/context/spring-context-3.1.xsd ([https](https://www.springframework.org/schema/context/spring-context-3.1.xsd ) result 200).
* http://www.springframework.org/schema/context/spring-context-3.2.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/context/spring-context-3.2.xsd ([https](https://www.springframework.org/schema/context/spring-context-3.2.xsd ) result 200).
* http://www.springframework.org/schema/context/spring-context.xsd with 15 occurrences migrated to:
https://www.springframework.org/schema/context/spring-context.xsd ([https](https://www.springframework.org/schema/context/spring-context.xsd ) result 200).
* http://www.springframework.org/schema/data/jpa/spring-jpa.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/data/jpa/spring-jpa.xsd ([https](https://www.springframework.org/schema/data/jpa/spring-jpa.xsd ) result 200).
* http://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd ([https](https://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd ) result 200).
* http://www.springframework.org/schema/integration/jms/spring-integration-jms-2.0.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/integration/jms/spring-integration-jms-2.0.xsd ([https](https://www.springframework.org/schema/integration/jms/spring-integration-jms-2.0.xsd ) result 200).
* http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd with 3 occurrences migrated to:
https://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd ([https](https://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd ) result 200).
* http://www.springframework.org/schema/integration/spring-integration.xsd with 27 occurrences migrated to:
https://www.springframework.org/schema/integration/spring-integration.xsd ([https](https://www.springframework.org/schema/integration/spring-integration.xsd ) result 200).
* http://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd ([https](https://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd ) result 200).
* http://www.springframework.org/schema/jdbc/spring-jdbc.xsd with 3 occurrences migrated to:
https://www.springframework.org/schema/jdbc/spring-jdbc.xsd ([https](https://www.springframework.org/schema/jdbc/spring-jdbc.xsd ) result 200).
* http://www.springframework.org/schema/jms/spring-jms.xsd with 2 occurrences migrated to:
https://www.springframework.org/schema/jms/spring-jms.xsd ([https](https://www.springframework.org/schema/jms/spring-jms.xsd ) result 200).
* http://www.springframework.org/schema/lang/spring-lang.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/lang/spring-lang.xsd ([https](https://www.springframework.org/schema/lang/spring-lang.xsd ) result 200).
* http://www.springframework.org/schema/rabbit/spring-rabbit.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/rabbit/spring-rabbit.xsd ([https](https://www.springframework.org/schema/rabbit/spring-rabbit.xsd ) result 200).
* http://www.springframework.org/schema/task/spring-task-3.0.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/task/spring-task-3.0.xsd ([https](https://www.springframework.org/schema/task/spring-task-3.0.xsd ) result 200).
* http://www.springframework.org/schema/task/spring-task.xsd with 2 occurrences migrated to:
https://www.springframework.org/schema/task/spring-task.xsd ([https](https://www.springframework.org/schema/task/spring-task.xsd ) result 200).
* http://www.springframework.org/schema/tx/spring-tx-2.5.xsd with 8 occurrences migrated to:
https://www.springframework.org/schema/tx/spring-tx-2.5.xsd ([https](https://www.springframework.org/schema/tx/spring-tx-2.5.xsd ) result 200).
* http://www.springframework.org/schema/tx/spring-tx-3.1.xsd with 16 occurrences migrated to:
https://www.springframework.org/schema/tx/spring-tx-3.1.xsd ([https](https://www.springframework.org/schema/tx/spring-tx-3.1.xsd ) result 200).
* http://www.springframework.org/schema/tx/spring-tx.xsd with 21 occurrences migrated to:
https://www.springframework.org/schema/tx/spring-tx.xsd ([https](https://www.springframework.org/schema/tx/spring-tx.xsd ) result 200).
* http://www.springframework.org/schema/util/spring-util-3.1.xsd with 9 occurrences migrated to:
https://www.springframework.org/schema/util/spring-util-3.1.xsd ([https](https://www.springframework.org/schema/util/spring-util-3.1.xsd ) result 200).
* http://www.springframework.org/schema/util/spring-util.xsd with 15 occurrences migrated to:
https://www.springframework.org/schema/util/spring-util.xsd ([https](https://www.springframework.org/schema/util/spring-util.xsd ) result 200).
* http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd with 3 occurrences migrated to:
https://java.sun.com/xml/ns/persistence/persistence_1_0.xsd ([https](https://java.sun.com/xml/ns/persistence/persistence_1_0.xsd ) result 302).
# Ignored
These URLs were intentionally ignored.
* http://java.sun.com/xml/ns/persistence with 6 occurrences
* http://www.springframework.org/schema/aop with 104 occurrences
* http://www.springframework.org/schema/batch with 343 occurrences
* http://www.springframework.org/schema/batch-integration with 32 occurrences
* http://www.springframework.org/schema/batch/test with 1 occurrences
* http://www.springframework.org/schema/beans with 673 occurrences
* http://www.springframework.org/schema/context with 52 occurrences
* http://www.springframework.org/schema/data/jpa with 2 occurrences
* http://www.springframework.org/schema/integration with 65 occurrences
* http://www.springframework.org/schema/integration/jdbc with 2 occurrences
* http://www.springframework.org/schema/integration/jms with 6 occurrences
* http://www.springframework.org/schema/jdbc with 8 occurrences
* http://www.springframework.org/schema/jms with 3 occurrences
* http://www.springframework.org/schema/lang with 2 occurrences
* http://www.springframework.org/schema/p with 60 occurrences
* http://www.springframework.org/schema/rabbit with 2 occurrences
* http://www.springframework.org/schema/task with 6 occurrences
* http://www.springframework.org/schema/tx with 89 occurrences
* http://www.springframework.org/schema/util with 48 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 330 occurrences
* http://xmlns.jcp.org/xml/ns/javaee with 82 occurrences
2019-03-21 10:59:44 +01:00
Mahmoud Ben Hassine
422c233e3c
Fix integration tests
2019-01-30 14:12:55 +01:00
Mahmoud Ben Hassine
3ca4284715
Upgrade SF to version 5.2.0.BUILD-SNAPSHOT and remove Castor tests
...
Castor support will be removed in SF v5.2. This commit removes
CastorMarshallingTests and CastorUnmarshallingTests as they do not
compile with SF v5.2.0.BUILD-SNAPSHOT.
Resolves BATCH-2787
2019-01-29 21:07:28 +01:00
Mahmoud Ben Hassine
edfbdbb82a
Tweak XmlInputFactory settings
2019-01-14 14:47:10 +01:00
Drummond Dawson
fa62861015
BATCH-2771: Fix deprecations in DefaultDataFieldMaxValueIncrementerFactory
2018-11-29 15:33:31 +01:00
Mahmoud Ben Hassine
76c34c7f72
fix build warnings
2018-11-29 15:17:01 +01:00
Drummond Dawson
eb9e0d1466
Replace explicit type with diamond operator in infrastructure tests module
2018-11-06 21:20:11 +01:00
Evgenii Strepetov
7a3248cabf
Fix JsonFileItemWriter for multiple write's
...
Resolves BATCH-2749
2018-09-12 08:59:32 -05:00
Mahmoud Ben Hassine
84d349ea9d
Add streaming json item writer
...
Resolves BATCH-2692
2018-07-09 16:41:56 -05:00
Mahmoud Ben Hassine
5281d6d2aa
Add a streaming Json item reader
...
This commit adds a new Json item reader with two implementations based
on Jackson and Gson.
Resolves BATCH-2691
2018-05-31 08:07:34 -05:00
Mahmoud Ben Hassine
2913c8de66
BATCH-2699: move derby's generated files under "build" directory
2018-04-20 17:25:20 -05:00
Michael Minella
f61679b55f
Added updates for properties files as well
2017-11-27 12:06:29 -06:00
Michael Minella
52d2c257c5
Version updates
2017-10-23 15:52:55 -05:00
Michael Minella
b180c75ce0
Housecleaning of build warnings
2017-09-15 15:58:22 -05:00
Michael Minella
5d268219fe
Create a builder for the JpaPagingItemReader
...
This commit adds a builder for the JpaPagingItemReader
Resolves BATCH-2591
2017-05-03 16:02:37 -05:00
Michael Minella
b3e8d3ea87
Removed iBatis based components
...
This commit removes the iBatis based ItemReaders and ItemWriter. They
were depricated in the 3.0 line in favor of the MyBatis natively
provided ItemReader and ItemWriter implementations. This removes those
depricated components.
Resolves BATCH-2591
2017-05-03 10:00:41 -05:00
Michael Minella
263e978a1f
Updated for various code warnings
...
This commit addresses a number of deprications and other code warnings.
There are still many more to address, but this is a start.
2017-05-02 12:48:03 -05:00
Philippe Marschall
dcc9da8273
BATCH-2407 Use StringBuilder instead of StringBuffer
...
With Java 1.5 StringBuilder is preferred over StringBuffer for single
threaded access as is has less overhead.
This is evidenced by the class comment of StringBuffer and Effective
Java 2nd Edition Item 67: Avoid excessive synchronization.
> The StringBuilder class should generally be used in preference to
> this one, as it supports all of the same operations but it is faster,
> as it performs no synchronization.
- replace StringBuffer with StringBuilder where possible
Issue: BATCH-2407
2015-08-06 10:22:39 -05:00
Philippe Marschall
7092102748
BATCH-2411 Remove @SuppressWarnings("unchecked")
...
The source code contains various @SuppressWarnings("unchecked") that
are no longer unnecessary since the relevant APIs have been upgraded to
support Java 5 generics.
- remove @SuppressWarnings("unchecked") where no longer unnecessary
Issue: BATCH-2411
2015-08-05 18:04:40 -05:00
Michael Minella
7be035cd3d
Fixed NPE in integration test
2015-05-20 22:31:30 -05:00
Michael Minella
37e7ad61b7
Updates to continue debugging
2015-04-14 14:10:51 -04:00
Michael Minella
d42692cc7a
Debugging statements for broken unit test (test only fails in CI environment)
2015-04-14 13:53:05 -04:00
Michael Minella
7c60b055c3
Removed dependency on ParameterizedRowMapper
...
To support Spring Framework 4.2 which removes ParameterizedRowMapper,
all references to that were switched to RowMapper. As of Spring 3, the
interfaces are identicle so this should cause no backward compatability
issues.
BATCH-2369
2015-03-31 14:08:38 -05:00
Michael Minella
a066647149
Change prefetch on jms tests to 0 and add @DirtiesContext to tests
...
With the upgrade to ActiveMQ 5.9.0 as part of Spring IO, ActiveMQ's
prefetch behavior changed. With each call to
JmsTemplate#receiveAndConvert, the template creates a new consumer. In
these tests, the first call created a consumer which prefetched all the
test messages on the queue, leaving them unavailable for the second
consumer the JmsTemplate created. By setting prefetch to 0, the
messages are now available for the subsequent
JmsTemplate#receiveAndConvert calls. This addresses BATCH-2248.
2014-10-27 17:16:49 -05:00
Michael Minella
090e6f2039
BATCH-2248: Fixes for Ldif reader tests
2014-10-17 11:40:38 -05:00
Andy Wilkinson
513e47fc9b
Update configuration of Spring IO plugin
...
This commit updates the configuration of the IO plugin to use an
external property, platformVersion, and to only apply the plugin when
this property is set. This removes the declaration of a snapshot
dependency from the normal build configuration and also breaks a
circular dependency between the projects that are in the Platform and
the Platform itself.
The commit also applies the configuration that was applied to the
standard test task, other than code coverage, to the new test tasks
that are created by the Spring IO plugin.
Two redundant Hibernate mapping files have been deleted. With more
recent versions of Hibernate the presence of these files was causing
test failures due to duplicate mappings.
2014-05-15 10:11:50 -05:00
Michael Minella
e7a4e348a5
BATCH-2229 & BATCH-2218: Removed OSGi related metadata and Maven POMs
2014-05-12 15:32:02 -05:00
Michael Minella
6d94ae9031
Updated hsqldb urls to use MVCC mode
2014-05-05 15:08:05 -05:00
Michael Minella
6913f5c022
Updated Spring Retry to 1.1.0.RC1
2014-05-02 13:04:31 -05:00
Gunnar Hillert
11a8ec1dc4
BATCH-2144 - Merged Michael's changes
...
* Merge PR https://github.com/ghillert/spring-batch/pull/1
* Update Spring Integration dependency to 4.0.0.RC1
* Update docbook-reference-plugin to 0.2.8
2014-04-24 12:16:17 -05:00
Gunnar Hillert
f1d71a06f4
BATCH-2144 Convert Spring Batch to use Gradle
...
* Use Gradle 1.11
* Remove SpringSource references
* Update JavaDoc overview
* Update Jacoco conf + Add license/manifest files
* Addresses also BATCH-2187
* Update a number of unit tests to not be ignored
Jira: https://jira.springsource.org/browse/BATCH-2144
2014-04-24 12:16:17 -05:00
jpraet
b26d272d43
cleanup
2014-04-02 14:35:53 -04:00
Michael Minella
ff7793cacf
[maven-release-plugin] prepare for next development iteration
2014-02-21 21:42:59 -06:00
Michael Minella
f690c496c4
[maven-release-plugin] prepare release 3.0.0.M3
2014-02-21 21:42:55 -06:00
Michael Minella
b278239751
BATCH-2110: Updated batch to support Spring 4
...
* Refactored iBatis based readers and writers to not utilize
SqlMapClientTemplate.
* Depricated all iBatis based readers and writers in favor of MyBatis's
native Spring support.
* Updated XStream support to 1.4.4 and Jettison to 1.2 to be in
alignment with Spring 4.
* Added the PooledEmbeddedDataSource to address the issue outlined in
SPR-11372.
2014-02-06 11:34:33 -06:00
Michael Minella
8bee7ac310
Cleaned up merge issues and warnings in POM files
2013-11-22 17:12:22 -06:00
Michael Minella
3dcbb44906
[maven-release-plugin] prepare release 2.2.3.RELEASE
2013-11-22 17:03:55 -06:00
Michael Minella
c5f65b697f
[maven-release-plugin] prepare for next development iteration
2013-11-22 16:18:46 -06:00
Michael Minella
01620222f6
[maven-release-plugin] prepare release 2.2.2.RELEASE
2013-11-22 16:09:10 -06:00
Michael Minella
35332a4757
[maven-release-plugin] prepare for next development iteration
2013-09-09 21:31:36 -07:00
Michael Minella
395c219b8b
[maven-release-plugin] prepare release 3.0.0.M2
2013-09-09 21:31:30 -07:00
Michael Minella
2c1b8e154a
[maven-release-plugin] prepare for next development iteration
2013-08-23 15:15:56 -05:00