Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.provider.filetransfer.efs/src/org/eclipse/ecf/tests/provider/filetransfer/efs/SendTest.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.provider.filetransfer.efs/src/org/eclipse/ecf/tests/provider/filetransfer/efs/SendTest.java b/tests/bundles/org.eclipse.ecf.tests.provider.filetransfer.efs/src/org/eclipse/ecf/tests/provider/filetransfer/efs/SendTest.java
new file mode 100755
index 000000000..046ac488e
--- /dev/null
+++ b/tests/bundles/org.eclipse.ecf.tests.provider.filetransfer.efs/src/org/eclipse/ecf/tests/provider/filetransfer/efs/SendTest.java
@@ -0,0 +1,46 @@
+/****************************************************************************
+ * Copyright (c) 2007 Composent, 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:
+ * Composent, Inc. - initial API and implementation
+ *****************************************************************************/
+
+package org.eclipse.ecf.tests.provider.filetransfer.efs;
+
+import java.io.File;
+import java.net.URL;
+
+import org.eclipse.ecf.tests.filetransfer.AbstractSendTestCase;
+
+public class SendTest extends AbstractSendTestCase {
+
+ File inputFile = null;
+ URL outputFile = null;
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ecf.tests.filetransfer.AbstractSendTestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ super.setUp();
+ inputFile = new File("test.txt");
+ outputFile = new URL("efs:file://c:/ECFtest.txt");
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ecf.tests.filetransfer.AbstractSendTestCase#tearDown()
+ */
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ inputFile = null;
+ outputFile = null;
+ }
+
+ public void testSend() throws Exception {
+ testSendForFile(outputFile, inputFile);
+ waitForDone(5000);
+ }
+}

Back to the top