diff options
author | Henrik Lindberg | 2009-05-13 14:58:56 +0000 |
---|---|---|
committer | Henrik Lindberg | 2009-05-13 14:58:56 +0000 |
commit | 18cf6de03baa9e838f4a4feafd0a84403b21f6a4 (patch) | |
tree | 373e0a0d85ba50bb90021f44150286a2d9955477 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests | |
parent | 011b4b065d0ed06dea1798976ae39266e87c0c7a (diff) | |
download | rt.equinox.p2-18cf6de03baa9e838f4a4feafd0a84403b21f6a4.tar.gz rt.equinox.p2-18cf6de03baa9e838f4a4feafd0a84403b21f6a4.tar.xz rt.equinox.p2-18cf6de03baa9e838f4a4feafd0a84403b21f6a4.zip |
Also tests streamed reading.
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/TimeoutTest.java | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/TimeoutTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/TimeoutTest.java index 9f13f9e3d..9b1b9585c 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/TimeoutTest.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/TimeoutTest.java @@ -24,7 +24,7 @@ import org.eclipse.equinox.p2.tests.testserver.helper.AbstractTestServerClientCa public class TimeoutTest extends AbstractTestServerClientCase { private static final int MODIFIED = 1; private static final int DOWNLOAD = 2; - // private static final int STREAM = 3; + private static final int STREAM = 3; protected String authTestFailMessage; @@ -62,9 +62,10 @@ public class TimeoutTest extends AbstractTestServerClientCase { case MODIFIED : transport.getLastModified(toDownload, null); break; - // case STREAM : - // transport.stream(toDownload, null); - // break; + case STREAM : + transport.stream(toDownload); + // transport.stream(toDownload, null); // + break; } } catch (OperationCanceledException e) { fail("The getLastModified was canceled - the UI auth service is probably not running"); @@ -124,13 +125,13 @@ public class TimeoutTest extends AbstractTestServerClientCase { doTimeoutCancelation(DOWNLOAD); } - // public void testStreamTimeout() throws Exception { - // doTimeout(STREAM); - // } - // - // public void testStreamTimeoutCancelation() throws Exception { - // doTimeoutCancelation(STREAM); - // } + public void testStreamTimeout() throws Exception { + doTimeout(STREAM); + } + + public void testStreamTimeoutCancelation() throws Exception { + doTimeoutCancelation(STREAM); + } public void doTimeoutCancelation(int type) throws Exception { System.out.print("Note that test takes at least 10 seconds before timing out (and >120 if it fails)\n"); @@ -153,9 +154,10 @@ public class TimeoutTest extends AbstractTestServerClientCase { case MODIFIED : transport.getLastModified(toDownload, monitor); break; - // case STREAM : - // transport.stream(toDownload, monitor); - // break; + case STREAM : + transport.stream(toDownload); + // transport.stream(toDownload, null); // + break; } } catch (OperationCanceledException e) { caught = true; |