From ba066ebbb37f367e52f310ce39f6edcbb528b477 Mon Sep 17 00:00:00 2001
From: Martin Oberhuber < martin.oberhuber@windriver.com>
Date: Tue, 3 Jun 2008 20:18:09 +0000
Subject: [PATCH] [tests] Add "FTP Windows" systemType for testing
---
rse/tests/org.eclipse.rse.tests/plugin.xml | 23 +++++++++++++++
.../FTPWindowsFileSubSystemConfiguration.java | 23 +++++++++++++++
.../test.data/ftpWindowsConnection.properties | 28 +++++++++++++++++++
3 files changed, 74 insertions(+)
create mode 100644 rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/subsystems/files/FTPWindowsFileSubSystemConfiguration.java
create mode 100644 rse/tests/org.eclipse.rse.tests/test.data/ftpWindowsConnection.properties
diff --git a/rse/tests/org.eclipse.rse.tests/plugin.xml b/rse/tests/org.eclipse.rse.tests/plugin.xml
index 34e6bd4625c..89a64b12037 100644
--- a/rse/tests/org.eclipse.rse.tests/plugin.xml
+++ b/rse/tests/org.eclipse.rse.tests/plugin.xml
@@ -59,6 +59,19 @@
icon="icons/systemconnection.gif"
priority="2000">
+
+
+
+
+
+
+
+
diff --git a/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/subsystems/files/FTPWindowsFileSubSystemConfiguration.java b/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/subsystems/files/FTPWindowsFileSubSystemConfiguration.java
new file mode 100644
index 00000000000..903b5cc9cf2
--- /dev/null
+++ b/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/subsystems/files/FTPWindowsFileSubSystemConfiguration.java
@@ -0,0 +1,23 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Wind River Systems, Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Martin Oberhuber (Wind River) - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.rse.tests.subsystems.files;
+
+import org.eclipse.rse.subsystems.files.ftp.FTPFileSubSystemConfiguration;
+
+public class FTPWindowsFileSubSystemConfiguration extends FTPFileSubSystemConfiguration {
+
+ public FTPWindowsFileSubSystemConfiguration() {
+ super();
+ setIsUnixStyle(false);
+ }
+
+}
diff --git a/rse/tests/org.eclipse.rse.tests/test.data/ftpWindowsConnection.properties b/rse/tests/org.eclipse.rse.tests/test.data/ftpWindowsConnection.properties
new file mode 100644
index 00000000000..56a97780535
--- /dev/null
+++ b/rse/tests/org.eclipse.rse.tests/test.data/ftpWindowsConnection.properties
@@ -0,0 +1,28 @@
+###############################################################################
+# Copyright (c) 2008 IBM Corporation and others. All rights reserved.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+
+# name/label for this ftp connection
+name = test_ftp_only_windows
+
+# profile name this connection should be created for
+profile_name = junit_test_profile
+
+# FTP system ID
+system_type_id = org.eclipse.rse.tests.systemType.ftp.windows
+
+# Address of ftp connection
+address = 127.0.0.1
+
+# userid to connect to ftp connection
+userid = d
+
+# password to connect to ftp connection
+password = d
\ No newline at end of file