Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2008-11-13 22:33:24 +0000
committerslewis2008-11-13 22:33:24 +0000
commit1ffc6016f36d828bdca2ff690e9712e4a91b33d7 (patch)
tree708a715ecde21d530aaaa95f261e4b9dfb6498ad
parentae2744ef3adec8e7192267adf5acaf7bc0373435 (diff)
downloadorg.eclipse.ecf-1ffc6016f36d828bdca2ff690e9712e4a91b33d7.tar.gz
org.eclipse.ecf-1ffc6016f36d828bdca2ff690e9712e4a91b33d7.tar.xz
org.eclipse.ecf-1ffc6016f36d828bdca2ff690e9712e4a91b33d7.zip
improved proxy test supportRoot_Release_2_1
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/AbstractRetrieveTestCase.java8
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLRetrieveTest.java2
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/AbstractRetrieveTestCase.java b/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/AbstractRetrieveTestCase.java
index e43e1d9cf..abc7c810a 100755
--- a/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/AbstractRetrieveTestCase.java
+++ b/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/AbstractRetrieveTestCase.java
@@ -167,7 +167,7 @@ public abstract class AbstractRetrieveTestCase extends TestCase {
assertTrue(count > eventCount);
}
- protected void addProxy(final String proxyHost, final int port) throws Exception {
+ protected void addProxy(final String proxyHost, final int port, final String username, final String password) throws Exception {
IProxyService proxyService = Activator.getDefault().getProxyService();
proxyService.setProxiesEnabled(true);
proxyService.setSystemProxiesEnabled(false);
@@ -181,7 +181,7 @@ public abstract class AbstractRetrieveTestCase extends TestCase {
}
public String getPassword() {
- return null;
+ return password;
}
public int getPort() {
@@ -193,11 +193,11 @@ public abstract class AbstractRetrieveTestCase extends TestCase {
}
public String getUserId() {
- return null;
+ return username;
}
public boolean isRequiresAuthentication() {
- return false;
+ return (username != null);
}
public void setHost(String host) {
diff --git a/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLRetrieveTest.java b/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLRetrieveTest.java
index 3d02c7cca..c5fde8222 100755
--- a/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLRetrieveTest.java
+++ b/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLRetrieveTest.java
@@ -89,7 +89,7 @@ public class URLRetrieveTest extends AbstractRetrieveTestCase {
}
public void testReceiveFile() throws Exception {
- //addProxy("composent.com",3129);
+ addProxy("composent.com",3129,"foo\\bar","password");
testReceive(HTTP_RETRIEVE);
}

Back to the top