Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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