Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorslewis2008-05-02 01:20:02 -0400
committerslewis2008-05-02 01:20:02 -0400
commit62d100b90c6251a6c13f32d3b775397d546e5539 (patch)
tree0d8296f9a529e47342aab4134321ca1d7cecb492 /tests
parent3e2f32b2c86e41103664368818e6e8de1de30a4a (diff)
downloadorg.eclipse.ecf-62d100b90c6251a6c13f32d3b775397d546e5539.tar.gz
org.eclipse.ecf-62d100b90c6251a6c13f32d3b775397d546e5539.tar.xz
org.eclipse.ecf-62d100b90c6251a6c13f32d3b775397d546e5539.zip
Simplified negative test case
Diffstat (limited to 'tests')
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.filetransfer/.classpath2
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLPartialRetrieveTest.java6
2 files changed, 2 insertions, 6 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.filetransfer/.classpath b/tests/bundles/org.eclipse.ecf.tests.filetransfer/.classpath
index c2ce266a6..ce0c7a5d4 100755
--- a/tests/bundles/org.eclipse.ecf.tests.filetransfer/.classpath
+++ b/tests/bundles/org.eclipse.ecf.tests.filetransfer/.classpath
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
+ <classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/CDC-1.0%Foundation-1.0"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git a/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLPartialRetrieveTest.java b/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLPartialRetrieveTest.java
index c27d5dec2..8f8e4b732 100755
--- a/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLPartialRetrieveTest.java
+++ b/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLPartialRetrieveTest.java
@@ -20,7 +20,6 @@ import org.eclipse.ecf.filetransfer.IFileTransferListener;
import org.eclipse.ecf.filetransfer.IFileTransferPausable;
import org.eclipse.ecf.filetransfer.IIncomingFileTransfer;
import org.eclipse.ecf.filetransfer.IncomingFileTransferException;
-import org.eclipse.ecf.filetransfer.InvalidFileRangeSpecificationException;
import org.eclipse.ecf.filetransfer.events.IFileTransferEvent;
import org.eclipse.ecf.filetransfer.events.IIncomingFileTransferReceiveDataEvent;
import org.eclipse.ecf.filetransfer.events.IIncomingFileTransferReceiveDoneEvent;
@@ -185,10 +184,7 @@ public class URLPartialRetrieveTest extends ContainerAbstractTestCase {
testReceiveHttp(10, 5, HTTP_RETRIEVE);
fail();
} catch (final IncomingFileTransferException e) {
- final Throwable t = e.getCause();
- if (t != null && t instanceof InvalidFileRangeSpecificationException)
- return;
- fail();
+ return;
}
}

Back to the top