summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-04-29 02:21:47 (EDT)
committer Steffen Pingel2013-04-29 02:21:47 (EDT)
commitefd5db80f0b94f2b9d94df6a153a4e98cfbd9e8b (patch)
treed3f78d6feca598d98251e0221bc0c708bce7c4de
parent92ea217bce391c28904425c975b9ef168849dced (diff)
downloadorg.eclipse.mylyn.tasks-efd5db80f0b94f2b9d94df6a153a4e98cfbd9e8b.zip
org.eclipse.mylyn.tasks-efd5db80f0b94f2b9d94df6a153a4e98cfbd9e8b.tar.gz
org.eclipse.mylyn.tasks-efd5db80f0b94f2b9d94df6a153a4e98cfbd9e8b.tar.bz2
406693: fix reading resource in standalone testsrefs/changes/20/12320/1
Change-Id: I681c226d470b25880d14dbbb66daf5885a9a4100 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=406693
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/data/TaskDataExternalizerTest.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/data/TaskDataExternalizerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/data/TaskDataExternalizerTest.java
index cb72bc7..22622bf 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/data/TaskDataExternalizerTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/data/TaskDataExternalizerTest.java
@@ -13,8 +13,6 @@ package org.eclipse.mylyn.tasks.tests.data;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileInputStream;
import java.util.zip.ZipInputStream;
import junit.framework.TestCase;
@@ -50,8 +48,7 @@ public class TaskDataExternalizerTest extends TestCase {
}
public void testRead() throws Exception {
- File file = CommonTestUtil.getFile(this, "testdata/taskdata-1.0-bug-219897.zip");
- ZipInputStream in = new ZipInputStream(new FileInputStream(file));
+ ZipInputStream in = new ZipInputStream(CommonTestUtil.getResource(this, "testdata/taskdata-1.0-bug-219897.zip"));
try {
in.getNextEntry();
@SuppressWarnings("unused")
@@ -62,8 +59,7 @@ public class TaskDataExternalizerTest extends TestCase {
}
public void testReadWrite() throws Exception {
- File file = CommonTestUtil.getFile(this, "testdata/taskdata-1.0-bug-219897.zip");
- ZipInputStream in = new ZipInputStream(new FileInputStream(file));
+ ZipInputStream in = new ZipInputStream(CommonTestUtil.getResource(this, "testdata/taskdata-1.0-bug-219897.zip"));
ITaskDataWorkingCopy state;
try {
in.getNextEntry();