Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-04-08 03:31:40 +0000
committermkersten2006-04-08 03:31:40 +0000
commit2169841729e8b64fe8fb145b35ad0587c0bd1506 (patch)
treebff673894c0bbc474c7f601333fbfe1b0997dd97 /org.eclipse.mylyn.bugzilla.tests
parent427b4ddeb333750a72c144ed019716465333d261 (diff)
downloadorg.eclipse.mylyn.tasks-2169841729e8b64fe8fb145b35ad0587c0bd1506.tar.gz
org.eclipse.mylyn.tasks-2169841729e8b64fe8fb145b35ad0587c0bd1506.tar.xz
org.eclipse.mylyn.tasks-2169841729e8b64fe8fb145b35ad0587c0bd1506.zip
Version update
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ReportAttachmentTest.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ReportAttachmentTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ReportAttachmentTest.java
index bafd4aa8b..a1a3e9e1a 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ReportAttachmentTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ReportAttachmentTest.java
@@ -14,9 +14,11 @@ package org.eclipse.mylar.bugzilla.tests;
import java.io.File;
import java.io.FileReader;
import java.io.Reader;
+import java.net.URL;
import junit.framework.TestCase;
+import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Path;
import org.eclipse.mylar.bugzilla.core.BugReport;
import org.eclipse.mylar.core.tests.support.FileTool;
@@ -52,12 +54,11 @@ public class ReportAttachmentTest extends TestCase {
}
public void testAttachementDownload() throws Exception {
-// URL localURL = null;
-// URL installURL = BugzillaTestPlugin.getDefault().getBundle().getEntry("testdata/contexts/");
- File destinationFile = FileTool.getFileInPlugin(BugzillaTestPlugin.getDefault(), new Path("testdata/contexts/"));
-// localURL = FileLocator.toFileURL(installURL);
-
-// File destinationFile = new File(localURL.getPath()+"downloadedContext.xml");
+ URL localURL = null;
+ URL installURL = BugzillaTestPlugin.getDefault().getBundle().getEntry("testdata/contexts/");
+// File destinationFile = FileTool.getFileInPlugin(BugzillaTestPlugin.getDefault(), new Path("testdata/contexts/"));
+ localURL = FileLocator.toFileURL(installURL);
+ File destinationFile = new File(localURL.getPath()+"downloadedContext.xml");
TaskRepository repository = new TaskRepository(BugzillaPlugin.REPOSITORY_KIND, IBugzillaConstants.TEST_BUGZILLA_222_URL);
boolean result = BugzillaRepositoryUtil.downloadAttachment(repository, 2, destinationFile, true);

Back to the top