summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-07-05 07:52:30 -0400
committerAlexander Kurtakov2018-07-05 07:54:22 -0400
commitadcf0b75d5899f3092398ef832f88870e9f73ba9 (patch)
tree7d8820a4ff09d6c96a01eb1585528fba163bf370
parentc87b2749a49ddd50263e36b329cbec01ac23e9dd (diff)
downloadrt.equinox.p2-adcf0b75d5899f3092398ef832f88870e9f73ba9.tar.gz
rt.equinox.p2-adcf0b75d5899f3092398ef832f88870e9f73ba9.tar.xz
rt.equinox.p2-adcf0b75d5899f3092398ef832f88870e9f73ba9.zip
Bug 536616 - Test testPauseAndResumeMoreThanOnce and testPauseAndResumeI20180709-2000I20180708-2000I20180707-1500I20180706-2000I20180705-2000
fail Switch to fetching photon content.jar. Change-Id: I65c56f6038198c4241888d94f3b3e6705cc1d773 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest2.java18
1 files changed, 14 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest2.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest2.java
index ef1bc96a4..a874d0389 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest2.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest2.java
@@ -10,12 +10,22 @@
*******************************************************************************/
package org.eclipse.equinox.p2.tests.repository;
-import java.io.*;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.OutputStream;
import java.net.URI;
import java.util.Date;
import java.util.EventObject;
-import org.eclipse.core.runtime.*;
-import org.eclipse.core.runtime.jobs.*;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.IJobChangeEvent;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.core.runtime.jobs.JobChangeAdapter;
import org.eclipse.equinox.internal.p2.repository.DownloadProgressEvent;
import org.eclipse.equinox.internal.p2.transport.ecf.FileReader;
import org.eclipse.equinox.internal.provisional.p2.core.eventbus.IProvisioningEventBus;
@@ -188,7 +198,7 @@ public class FileReaderTest2 extends AbstractProvisioningTest {
}
private void doFileReaderTest(final PauseJob pauseJob, IProgressMonitor monitor) throws IOException, CoreException {
- final String testRemoteFileURL = "http://download.eclipse.org/releases/juno/201206270900/content.jar";
+ final String testRemoteFileURL = "http://download.eclipse.org/releases/photon/201806271001/content.jar";
File tmpFolder = getTempFolder();
File tmpFile = new File(tmpFolder, "testDownloadPauseResume.zip");
File tmpFile1 = new File(tmpFolder, "testDownloadWithoutPause.zip");