From 3f2399e56960bd806cbaa6f12e8659a66119edb9 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Thu, 23 Sep 2010 09:45:30 -0400 Subject: [PATCH] INT-1263, more MessageHistory changes FTP, SFTP etc., forgot to add two files --- .../sftp/MessageHistory-context.xml | 52 +++++++++++++++++++ .../sftp/SftpMessageHistoryTest.java | 38 ++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 spring-integration-sftp/src/test/java/org/springframework/integration/sftp/MessageHistory-context.xml create mode 100644 spring-integration-sftp/src/test/java/org/springframework/integration/sftp/SftpMessageHistoryTest.java diff --git a/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/MessageHistory-context.xml b/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/MessageHistory-context.xml new file mode 100644 index 0000000000..e79c7d13c0 --- /dev/null +++ b/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/MessageHistory-context.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + diff --git a/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/SftpMessageHistoryTest.java b/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/SftpMessageHistoryTest.java new file mode 100644 index 0000000000..2f32a443b9 --- /dev/null +++ b/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/SftpMessageHistoryTest.java @@ -0,0 +1,38 @@ +/* + * Copyright 2002-2010 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.springframework.integration.sftp; + +import static junit.framework.Assert.assertEquals; + +import org.junit.Test; +import org.springframework.context.ApplicationContext; +import org.springframework.context.support.ClassPathXmlApplicationContext; +import org.springframework.integration.endpoint.SourcePollingChannelAdapter; + +/** + * @author Oleg Zhurakousky + * + */ +public class SftpMessageHistoryTest { + + @Test + public void testMessageHistoryCompliance(){ + ApplicationContext ac = new ClassPathXmlApplicationContext("MessageHistory-context.xml", SftpMessageHistoryTest.class); + SourcePollingChannelAdapter spca = ac.getBean("sftpAdapter", SourcePollingChannelAdapter.class); + assertEquals("sftpAdapter", spca.getComponentName()); + assertEquals("sftp:inbound-channel-adapter", spca.getComponentType()); + } +}