summaryrefslogtreecommitdiff
path: root/tags/2.3/src/test/resources/fakeftpserver-beans.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tags/2.3/src/test/resources/fakeftpserver-beans.xml')
-rw-r--r--tags/2.3/src/test/resources/fakeftpserver-beans.xml59
1 files changed, 59 insertions, 0 deletions
diff --git a/tags/2.3/src/test/resources/fakeftpserver-beans.xml b/tags/2.3/src/test/resources/fakeftpserver-beans.xml
new file mode 100644
index 0000000..e5d8793
--- /dev/null
+++ b/tags/2.3/src/test/resources/fakeftpserver-beans.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2008 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.
+-->
+
+<!-- Spring Framework configuration for FakeFtpServer -->
+<!-- The FakeFtpServerSpringCofigurationTest class has dependencies on
+ several of the bean names and values configured within this file -->
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
+
+ <bean id="fakeFtpServer" class="org.mockftpserver.fake.FakeFtpServer">
+ <property name="serverControlPort" value="9981"/>
+ <property name="systemName" value="UNIX"/>
+ <property name="userAccounts">
+ <list>
+ <bean class="org.mockftpserver.fake.UserAccount">
+ <property name="username" value="joe"/>
+ <property name="password" value="password"/>
+ <property name="homeDirectory" value="/"/>
+ </bean>
+ </list>
+ </property>
+
+ <property name="fileSystem">
+ <bean class="org.mockftpserver.fake.filesystem.UnixFakeFileSystem">
+ <property name="createParentDirectoriesAutomatically" value="false"/>
+ <property name="entries">
+ <list>
+ <bean class="org.mockftpserver.fake.filesystem.DirectoryEntry">
+ <property name="path" value="/"/>
+ </bean>
+ <bean class="org.mockftpserver.fake.filesystem.FileEntry">
+ <property name="path" value="/File.txt"/>
+ <property name="contents" value="abcdefghijklmnopqrstuvwxyz"/>
+ </bean>
+ </list>
+ </property>
+ </bean>
+ </property>
+
+ </bean>
+
+</beans> \ No newline at end of file