INT-4114: Add missed <poller> to XSDs
JIRA: https://jira.spring.io/browse/INT-4114
This commit is contained in:
committed by
Gary Russell
parent
fef0a4db03
commit
674d5adfc0
@@ -651,6 +651,11 @@ Only files matching this regular expression will be picked up by this adapter.
|
||||
</xsd:element>
|
||||
|
||||
<xsd:complexType name="transformerType">
|
||||
<xsd:choice minOccurs="0" maxOccurs="2">
|
||||
<xsd:element ref="integration:poller" minOccurs="0" maxOccurs="1" />
|
||||
<xsd:element name="request-handler-advice-chain" type="integration:handlerAdviceChainType"
|
||||
minOccurs="0" maxOccurs="1" />
|
||||
</xsd:choice>
|
||||
<xsd:attribute name="id" type="xsd:string">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
|
||||
@@ -13,14 +13,18 @@
|
||||
http://www.springframework.org/schema/integration/file
|
||||
http://www.springframework.org/schema/integration/file/spring-integration-file.xsd">
|
||||
|
||||
<si:channel id="input"/>
|
||||
<si:channel id="input">
|
||||
<si:queue/>
|
||||
</si:channel>
|
||||
|
||||
<si:channel id="output"/>
|
||||
|
||||
<file:file-to-string-transformer id="transformer"
|
||||
input-channel="input"
|
||||
delete-files="${files.delete}"
|
||||
output-channel="output"/>
|
||||
output-channel="output">
|
||||
<si:poller fixed-delay="100"/>
|
||||
</file:file-to-string-transformer>
|
||||
|
||||
<context:property-placeholder location="org/springframework/integration/file/config/fileToStringTransformerParserTests.properties"/>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -24,23 +24,26 @@ import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.DirectFieldAccessor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.integration.endpoint.EventDrivenConsumer;
|
||||
import org.springframework.integration.endpoint.PollingConsumer;
|
||||
import org.springframework.integration.file.transformer.FileToStringTransformer;
|
||||
import org.springframework.integration.transformer.MessageTransformingHandler;
|
||||
import org.springframework.test.annotation.DirtiesContext;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
/**
|
||||
* @author Mark Fisher
|
||||
* @author Gary Russell
|
||||
* @author Artem Bilan
|
||||
*/
|
||||
@ContextConfiguration
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@DirtiesContext
|
||||
public class FileToStringTransformerParserTests {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("transformer")
|
||||
EventDrivenConsumer endpoint;
|
||||
PollingConsumer endpoint;
|
||||
|
||||
@Test
|
||||
public void checkDeleteFilesValue() {
|
||||
|
||||
Reference in New Issue
Block a user