Commit Graph

73 Commits

Author SHA1 Message Date
Andy Wilkinson
28ab8394de Build on top of Spring 4's new messaging types
This commit updates Spring Integration to depend upon Spring 4, making
use of the message types that have moved from Spring Integration into
Spring's new spring-messaging module.

The default message converter no longer supports conversion of a
message that is null, throwing an IllegalArgumentException if an
attempt is made to convert null. Furthermore, GenericMessagingTemplate
does not support sending null, again throwing an
IllegalArgumentException. Previously, MessagingTemplate had no-oped an
attempt to send null.

ConcurrentAggregatorTests and AggregatorTests both had a single test
that was specifically testing the behaviour of an aggregator that
returns null for its message. These tests have been removed.

CorrelatingMessageHandlerTests have been updated to specify some
additional behaviour for its mocks so that null messages are not
returned.

These are the only functional changes that have been made. All other
changes are simply for moving to the repackaged and/or renamed types.

In the move to being part of core Spring, a number of constants and
header accessor methods have moved from MessageHeaders to
MessageHeaderAccessor. This commit continues this pattern for
the enterprise integration headers that are specific to Spring
Integration. A new class, EiMessageHeaderAccessor, has been created.
This class provides constants and methods for working with SI-specific
headers. The main code and tests have been updated to use this new
class.
2013-10-08 16:42:22 -04:00
Gary Russell
5617d2e2d8 INT-2768 Polishing - Docs, White Space
Add what's new; fix white space in test case.
2013-09-25 17:43:33 -04:00
Artem Bilan
2f8053f585 INT-2768: Add BeanClassLoaderAware 2013-09-25 17:25:20 -04:00
mbazos
3daa690426 INT-2768 Add XSLT Transformer Factory Class Name
Add the ability to inject the class name of the xslt transformer
implementation.

https://jira.springsource.org/browse/INT-2768

-add @author to java docs
-updat copywrite year to current year

add new test and check for class name that it exists.

-fix xslt payload transformer and test for unknown class name, will
now default to the jre default transformer.
2013-09-25 17:23:29 -04:00
Gary Russell
7f008b58c2 INT-1639 Externalize SpEL Evaluation Context
Allow modification of context property accessors and
functions.

Polishing

- Fix tests to ensure the EvaluationContextFactoryBean is
available when necessary.

Polishing - Use Utility for ALL EvaluationContexts

Add Test Showing Custom Function

See SpelTransformerIntegrationTests-context.xml

Polishing

Polishing -fix Remote Sync

Polishing - Emit WARN if No BeanFactory

Polishing - Do Not Override ConversionService

Kludge to Prevent Warning When No BeanFactory

Expressions for method invoking in the MessagingMethodInvokerHelper
don't need a BeanFactory - suppress the warning.

Polishing - PR Comments - Invert Boolean
2013-08-25 20:01:14 -04:00
Artem Bilan
41fe514469 INT-3067 Xslt method=text StringResult coercion
Previously there was a need to add `result-type="StringResult"`
to <int-xml:xslt-transformer> for xslt output `method='text'`
in case payload was non-standard type (e.g. `File`), if we wanted to get
result as text.

* Add coercion to `StringResult` code, if `Transformer`'s property `method` is 'text' and there is no explicit `resultFactory` provided.
* Add documentation to reference manual

JIRA: https://jira.springsource.org/browse/INT-3067
2013-08-17 13:17:08 -04:00
Gunnar Hillert
0271acaf4c INT-2916 - Upgrade to JUnit 4.11 in support of JDK7
For reference see: https://jira.springsource.org/browse/INT-2916

Changes:

* INT-2919 - Upgrade Spring Data Gemfire to 1.2.2.RELEASE
* Exclude Hamcrest transitive dependency from JUnit (as already explicitly declared)
* Set sourceCompatibility in build.gradle to 1.6
* Set targetCompatibility in build.gradle to 1.6
* Upgrade Hamcrest to 1.3 and fix deprications
  - Corematcher is(*class) change to is(instanceOf(*class))
  - Change org.junit.internal.matchers.TypeSafeMatcher to org.hamcrest.TypeSafeMatcher
  - Change import org.junit.matchers.JUnitMatchers.containsString to org.hamcrest.CoreMatchers.containsString
  - Change import org.junit.matchers.JUnitMatchers.both to org.hamcrest.CoreMatchers.both
  - Change import org.junit.matchers.JUnitMatchers.containsString to org.hamcrest.CoreMatchers.containsString
* Fix JUnit deprecations
  - changed junit.framework.Assert to org.junit.Assert
* Add few missing licenses headers to tests
* Marked several test classes with: @DirtiesContext(classMode=ClassMode.AFTER_EACH_TEST_METHOD)
  - SplitterIntegrationTests
  - GatewayInvokingMessageHandlerTests
  - FileToChannelIntegrationTests
  - FileInboundChannelAdapterWithRecursiveDirectoryTests
  - JdbcMessageStoreChannelTests
  - ChatMessageInboundChannelAdapterParserTests
* 3 Tests ignored (Still needs to be addressed):
  - testOperationOnPrototypeBean
  - testFailOperationWithCustomScope
  - testOperationOfControlBus
* Update SQL script (test-failure):
  - spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/config/outboundSchema.sql
  - add drop table statements
  - add ignore-failures="DROPS" to "jdbcOutboundChannelAdapterCommonConfig.xml"

INT-2916 - Code Review Changes

INT-2916 - Fix ignored Tests

Fix 3 previously ignored tests in *GroovyControlBusTests*:

* testOperationOnPrototypeBean
* testFailOperationWithCustomScope
* testOperationOfControlBus

INT-2916 - CI Build Testing

INT-2963 - Remove JDK7 Compilation Warnings

* Upgrade Mockito to 1.9.5
* Fix failing SubscribableJmsChannelTests

INT-2916 - Standardize Hamcrest assertions
Ensure Hamcrest assertions are standardized to: is(instanceOf(...))
2013-04-04 13:40:46 -04:00
Gunnar Hillert
26e41c8858 INT-2960 - Remove deprecated 'xpath-selector'
For reference see: https://jira.springsource.org/browse/INT-2960

* Remove 'xpath-selector' from XML Schema
* Remove parser class
* Remove tests
* Remove respective reference documentation
2013-03-14 15:48:20 -04:00
Gunnar Hillert
7055845424 INT-2218 - Chain Parser Validation Improvements
Components within Chain: Add parser validation

For reference see: https://jira.springsource.org/browse/INT-2218

INT-2218 - Code review changes

INT-2218 - Fix HttpOutboundGatewayParserTests

INT-2218 - Remove input-channel validation

Was already covered by PR #592
2012-09-21 12:22:52 +01:00
Oleg Zhurakousky
0a8b348c98 INT-2299
put back 'channel-resolver' attribute with deprecation warnings

INT-2299 polishing

INT-2299 added XPATH test
2011-12-15 17:09:52 -05:00
Mark Fisher
73c9876aca remove channel-resolver attribute
remove ChannelResolver awareness from router parsers and FactoryBean

refactor 'channelIdentifierMap' -> 'channelMappings' and other clarity enhancements

trim array tokens

added AbstractMappingMessageRouter
2011-10-21 16:12:00 -04:00
Gunnar Hillert
18aceb73fc INT-2191 - XPath Expression Namespace Parser: Improve Validation 2011-10-20 17:01:16 -04:00
Mark Fisher
2a33aaee5f versionless schemas for xml module 2011-10-10 14:02:52 -04:00
Mark Fisher
c9a34f5d7b add support for 'converter' on <xpath-router>
also improved the xsd doc and the reference manual
2011-10-04 15:35:43 -04:00
Mark Fisher
a0951c8fb4 initial implementation of XPathFilter 2011-09-30 15:55:51 -04:00
Gunnar Hillert
2c023f6fd1 Refactor/Standardize Router XSD Schema Attributes
- Add more documentation for schema elements in spring-integration-xml-2.1.xsd
  - Simplify Handling of Channel Resolution (Failures) for Routers
  - Fix PayloadTypeRouterTests
  - Update reference docs, XSD Schemas
  - Rename 'channel-resolution-required' to 'resolution-required'
  - Updated all tests accordingly
2011-09-20 11:08:43 -04:00
Mark Fisher
9f59001230 removed deprecated trigger sub-elements non-core 2011-08-31 12:54:22 -04:00
David Turanski
7921d3f7e6 INT-2068 fixed shouldSkipNulls logic 2011-08-21 11:05:54 -04:00
Oleg Zhurakousky
6ecf0ec1e6 INT-2039 removed references to deprecated Spring classes. Modified code where needed 2011-08-09 00:19:42 -04:00
Oleg Zhurakousky
765503daa4 polishing, fixed warning messages 2011-05-03 19:20:57 -04:00
jonas.partner
99d6b12174 add test additional test for INT-1838 using namespace although was fixed as a side effect of INT-1812 2011-04-12 10:18:45 +01:00
jonas.partner
12dafc8179 add test for producing a text output using <xsl:output method="text" encoding="UTF-8" /> relates to INT-1838 2011-04-12 10:00:33 +01:00
Jonas Partner
653c61e8d1 INT-1812 namespace parser for xsl transformer now sets always use source and result factories if result factory or type is specified 2011-03-08 17:29:26 +00:00
Mark Fisher
a5a64cebb0 un-@Ignored test now that it's compatible with JDK5 2010-12-22 08:08:23 -05:00
David Turanski
3db5db8696 Modified test for JDK 1.5 compatibility 2010-12-22 07:27:16 -05:00
Mark Fisher
5a25530b56 ignoring test again until we resolve the jdk version issue 2010-12-21 21:17:19 -05:00
Mark Fisher
27512ecea2 trying build with 'xalan' in output property test 2010-12-21 21:01:21 -05:00
Mark Fisher
ebd8d40120 temporarily ignoring test to determine if rest of build passes on jdk5 2010-12-21 20:52:56 -05:00
Oleg Zhurakousky
6725b68d5d INT-1659 changed the name of the attribute to 'evaluate-as-string', updated schema and tests. Updated documentation 2010-12-03 13:37:42 -05:00
Oleg Zhurakousky
928f38f315 INT-1659 exposed 'evaluate-as-node' attribute via the namespace, added tests 2010-12-03 11:36:49 -05:00
Oleg Zhurakousky
317d2cad7f INT-1659 added 'evaluateAsNode' attribute to XPath router, added tests 2010-12-03 10:25:58 -05:00
David Turanski
37b16bc3f3 INT-1654 added test for outputProperties 2010-12-01 19:35:24 -05:00
Mark Fisher
38aa676cb9 renamed getChannelIndicatorList method to getChannelIdentifiers on AbstractMessageRouter 2010-11-10 08:50:21 -05:00
Oleg Zhurakousky
1278666ed7 INT-1596, fixed the broken links as well as all warnings 2010-11-09 12:17:45 -05:00
Oleg Zhurakousky
75d9e701e1 IINT-1515, INT-1519 actually pushing the test for the XmlValidatingMessageSelector 2010-10-16 06:25:44 -04:00
Oleg Zhurakousky
fc51593001 INT-1519, INT-957, INT-1515, Added support for propagating XML Validation exceptions with MessageRejectedException, added support for 'xml-validator' attribute, change XmlValidatingMessageSelector to be bootstrapped with either Resource/Schema or XmlValidator 2010-10-14 14:12:54 -04:00
Oleg Zhurakousky
e738d34535 INT-1519 removed XmlValidator and dependency on it in favor of XmlValidator startegy in Spring 2010-10-14 11:41:08 -04:00
Oleg Zhurakousky
1d0b773f2b INT-1517, combined Single and Multi channel XPath routers, modified XPathRouterParser to inherit form the base parser for all routers, combine single/multiple xpath router tests into one 2010-10-14 06:45:22 -04:00
Oleg Zhurakousky
a389fa9795 INT-1515 initial round of refactoring to turn validating-router into validating-filter 2010-10-14 05:56:19 -04:00
Oleg Zhurakousky
6c053a9e11 INT-1377, added support for dynamics in XML XPath router, added mapping support for XPath router configuration 2010-10-13 16:16:48 -04:00
Oleg Zhurakousky
32efbae90d INT-1263, more MessageHistory changes FTP, SFTP etc. 2010-09-23 09:45:01 -04:00
Oleg Zhurakousky
b6e058c59b INT-1263, added more changes and tests related valdating MessageHistory in every module 2010-09-22 18:44:51 -04:00
Oleg Zhurakousky
0d387756b3 INT-1257, changed convinience method to MessageHistory.containsComponent(string), added/modified tests in XML, WS, JMS to validate MessageHistory 2010-09-21 17:21:50 -04:00
Oleg Zhurakousky
f8b501e4f9 INT-1257, added convinience method MessageHistory.containsEntryWithName(string), added tests in XML to validate MessageHistory 2010-09-21 13:49:46 -04:00
Mark Fisher
3b15a0dd38 INT-1390 moved MessageBuilder into the 'support' package, moved GenericMessage and ErrorMessage into the 'message' package 2010-08-31 02:51:27 +00:00
Mark Fisher
7c1ab04cd5 INT-1390 Refactoring: moved MessageChannel to the root package, and moved ChannelResolver and BeanFactoryChannelResolver into a new 'suport.channel' package 2010-08-31 01:53:45 +00:00
Mark Fisher
c5db58ddd7 INT-1389 removed all dependencies on StringMessage from unit tests in spring-integration-xml 2010-08-30 20:49:22 +00:00
Oleg Zhurakousky
12a82618c3 INT-1383 2010-08-27 14:26:50 +00:00
Gary Russell
30eef8e6ce INT-1307 Remove @Override on interface methods in two test cases 2010-08-08 23:03:01 +00:00
Mark Fisher
3f00c75740 INT-1129 moved StringMessage from 'message' to 'core' (we might remove it before 2.0...) 2010-07-28 15:22:33 +00:00