Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-12-23 17:59:28 -0500
committerslewis2007-12-23 17:59:28 -0500
commit9d53c2a069b447a34ebdc895db02754c8adcb7f9 (patch)
tree08e1f5411497fc5f0d74103ba02ab8b430153b32
parent68758e30290f0452f836370775133942ae809f1f (diff)
downloadorg.eclipse.ecf-9d53c2a069b447a34ebdc895db02754c8adcb7f9.tar.gz
org.eclipse.ecf-9d53c2a069b447a34ebdc895db02754c8adcb7f9.tar.xz
org.eclipse.ecf-9d53c2a069b447a34ebdc895db02754c8adcb7f9.zip
Added javadocs and test cases for file transfer
-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