diff options
author | slewis | 2007-12-13 23:39:00 +0000 |
---|---|---|
committer | slewis | 2007-12-13 23:39:00 +0000 |
commit | 8641b4d1b49ed75c99ca7b087bf935b7b7fb3080 (patch) | |
tree | ed6df6e7b44a77d8c2cc49d848f7cead3a5c95cb | |
parent | 0ae4353033fcc4b1433a8d97c2cab70a4d80f671 (diff) | |
download | org.eclipse.ecf-8641b4d1b49ed75c99ca7b087bf935b7b7fb3080.tar.gz org.eclipse.ecf-8641b4d1b49ed75c99ca7b087bf935b7b7fb3080.tar.xz org.eclipse.ecf-8641b4d1b49ed75c99ca7b087bf935b7b7fb3080.zip |
Removed unnecessary httpoutgoing and scpoutgoing tests. These have moved to separate plugins
2 files changed, 0 insertions, 144 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/outgoing/HTTPOutgoingTest.java b/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/outgoing/HTTPOutgoingTest.java deleted file mode 100755 index e8fce7c85..000000000 --- a/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/outgoing/HTTPOutgoingTest.java +++ /dev/null @@ -1,72 +0,0 @@ -/**************************************************************************** - * Copyright (c) 2004 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.filetransfer.outgoing; - -import java.io.File; -import java.net.URL; - -import org.eclipse.ecf.core.ContainerFactory; -import org.eclipse.ecf.core.IContainer; -import org.eclipse.ecf.filetransfer.IFileTransferListener; -import org.eclipse.ecf.filetransfer.ISendFileTransferContainerAdapter; -import org.eclipse.ecf.filetransfer.events.IFileTransferEvent; -import org.eclipse.ecf.filetransfer.events.IIncomingFileTransferReceiveDoneEvent; -import org.eclipse.ecf.filetransfer.identity.FileIDFactory; -import org.eclipse.ecf.filetransfer.identity.IFileID; -import org.eclipse.ecf.tests.ContainerAbstractTestCase; - -/** - * - */ -public class HTTPOutgoingTest extends ContainerAbstractTestCase { - - private static final String TESTSRCPATH = "test.src"; - private static final String TESTSRCFILE = TESTSRCPATH + "/test.txt"; - - private static final String TESTTARGETURL = "http://localhost:8080/webdav/test.txt"; - - protected ISendFileTransferContainerAdapter adapter = null; - protected IFileTransferListener senderTransferListener = null; - - protected IFileTransferListener getFileTransferListener(final String prefix) { - return new IFileTransferListener() { - public void handleTransferEvent(IFileTransferEvent event) { - System.out.println(prefix + ".handleTransferEvent(" + event + ")"); - if (event instanceof IIncomingFileTransferReceiveDoneEvent) { - - } - } - }; - } - - protected void setUp() throws Exception { - super.setUp(); - final IContainer container = ContainerFactory.getDefault().createContainer(); - adapter = (ISendFileTransferContainerAdapter) container.getAdapter(ISendFileTransferContainerAdapter.class); - senderTransferListener = getFileTransferListener("localhost"); - } - - protected void tearDown() throws Exception { - super.tearDown(); - adapter = null; - senderTransferListener = null; - } - - public void testSend() throws Exception { - // Setup two clients. Client 0 is the receiver, client 1 is the sender - final IFileID targetID = FileIDFactory.getDefault().createFileID(adapter.getOutgoingNamespace(), new URL(TESTTARGETURL)); - adapter.sendOutgoingRequest(targetID, new File(TESTSRCFILE), senderTransferListener, null); - - sleep(20000); - } - -} diff --git a/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/outgoing/SCPOutgoingTest.java b/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/outgoing/SCPOutgoingTest.java deleted file mode 100755 index 7fb584ef2..000000000 --- a/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/outgoing/SCPOutgoingTest.java +++ /dev/null @@ -1,72 +0,0 @@ -/**************************************************************************** - * Copyright (c) 2004 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.filetransfer.outgoing; - -import java.io.File; -import java.net.URL; - -import org.eclipse.ecf.core.ContainerFactory; -import org.eclipse.ecf.core.IContainer; -import org.eclipse.ecf.filetransfer.IFileTransferListener; -import org.eclipse.ecf.filetransfer.ISendFileTransferContainerAdapter; -import org.eclipse.ecf.filetransfer.events.IFileTransferEvent; -import org.eclipse.ecf.filetransfer.events.IIncomingFileTransferReceiveDoneEvent; -import org.eclipse.ecf.filetransfer.identity.FileIDFactory; -import org.eclipse.ecf.filetransfer.identity.IFileID; -import org.eclipse.ecf.tests.ContainerAbstractTestCase; - -/** - * - */ -public class SCPOutgoingTest extends ContainerAbstractTestCase { - - private static final String TESTSRCPATH = "test.src"; - private static final String TESTSRCFILE = TESTSRCPATH + "/test.txt"; - - private static final String TESTTARGETURL = "scp://ecf2.osuosl.org/test.txt"; - - protected ISendFileTransferContainerAdapter adapter = null; - protected IFileTransferListener senderTransferListener = null; - - protected IFileTransferListener getFileTransferListener(final String prefix) { - return new IFileTransferListener() { - public void handleTransferEvent(IFileTransferEvent event) { - System.out.println(prefix + ".handleTransferEvent(" + event + ")"); - if (event instanceof IIncomingFileTransferReceiveDoneEvent) { - - } - } - }; - } - - protected void setUp() throws Exception { - super.setUp(); - final IContainer container = ContainerFactory.getDefault().createContainer(); - adapter = (ISendFileTransferContainerAdapter) container.getAdapter(ISendFileTransferContainerAdapter.class); - senderTransferListener = getFileTransferListener("localhost"); - } - - protected void tearDown() throws Exception { - super.tearDown(); - adapter = null; - senderTransferListener = null; - } - - public void testSend() throws Exception { - // Setup two clients. Client 0 is the receiver, client 1 is the sender - final IFileID targetID = FileIDFactory.getDefault().createFileID(adapter.getOutgoingNamespace(), new URL(TESTTARGETURL)); - adapter.sendOutgoingRequest(targetID, new File(TESTSRCFILE), senderTransferListener, null); - - sleep(20000); - } - -} |