Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2008-04-23 16:32:20 -0400
committerpelder2008-04-23 16:32:20 -0400
commitd4601da0702934b347091e82388635ee6e028fc3 (patch)
tree452541649fbfb031e3e417e9016be05d9c786fa0
parent30276594947d97bdf923ee7283c6099d30a5c751 (diff)
downloadorg.eclipse.jet-d4601da0702934b347091e82388635ee6e028fc3.tar.gz
org.eclipse.jet-d4601da0702934b347091e82388635ee6e028fc3.tar.xz
org.eclipse.jet-d4601da0702934b347091e82388635ee6e028fc3.zip
Tests do not compile with Eclipse 3.2
-rw-r--r--tests/org.eclipse.jet.tests.core/src/org/eclipse/jet/tests/core/url/TestURLUtility.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/org.eclipse.jet.tests.core/src/org/eclipse/jet/tests/core/url/TestURLUtility.java b/tests/org.eclipse.jet.tests.core/src/org/eclipse/jet/tests/core/url/TestURLUtility.java
index 7fff5f3..5022b54 100644
--- a/tests/org.eclipse.jet.tests.core/src/org/eclipse/jet/tests/core/url/TestURLUtility.java
+++ b/tests/org.eclipse.jet.tests.core/src/org/eclipse/jet/tests/core/url/TestURLUtility.java
@@ -61,8 +61,9 @@ public class TestURLUtility extends TestCase {
public void test_jar_file() throws IOException {
final Bundle bundle = Platform.getBundle("org.eclipse.jet.tests.core");
- final URL[] findEntries = FileLocator.findEntries(bundle, new Path("data/templates folder.jar"));
- final URL entry = findEntries[0];
+// final URL[] findEntries = FileLocator.findEntries(bundle, new Path("data/templates folder.jar"));
+// final URL entry = findEntries[0];
+ final URL entry = FileLocator.find(bundle, new Path("data/templates folder.jar"), null);
final URL resolved = FileLocator.resolve(entry);
URL test1TxtURL = URLUtility.jarEntryURL(resolved, "templates/base1/Copy of test1.txt");
@@ -83,8 +84,9 @@ public class TestURLUtility extends TestCase {
public void test_file_jar_file() throws IOException {
final Bundle bundle = Platform.getBundle("org.eclipse.jet.tests.core");
- final URL[] findEntries = FileLocator.findEntries(bundle, new Path("data/templates folder.jar"));
- final URL entry = findEntries[0];
+// final URL[] findEntries = FileLocator.findEntries(bundle, new Path("data/templates folder.jar"));
+// final URL entry = findEntries[0];
+ final URL entry = FileLocator.find(bundle, new Path("data/templates folder.jar"), null);
final URL resolved = FileLocator.resolve(entry);
URL test1TxtURL = URLUtility.relativeURL(resolved, "templates/base1/Copy of test1.txt");
@@ -107,8 +109,9 @@ public class TestURLUtility extends TestCase {
public void testToURL() throws URISyntaxException, IOException {
final Bundle bundle = Platform.getBundle("org.eclipse.jet.tests.core");
- final URL[] findEntries = FileLocator.findEntries(bundle, new Path("data/templates/base1/Copy of test1.txt"));
- final URL entry = findEntries[0];
+// final URL[] findEntries = FileLocator.findEntries(bundle, new Path("data/templates/base1/Copy of test1.txt"));
+// final URL entry = findEntries[0];
+ final URL entry = FileLocator.find(bundle, new Path("data/templates/base1/Copy of test1.txt"), null);
final URL resolved = FileLocator.resolve(entry);
final File file = new File(resolved.getPath());

Back to the top