|
Lines 65-70
public class BundleResourceTests extends CoreTest {
Link Here
|
| 65 |
assertNotNull("Did not find resource!", paths); |
65 |
assertNotNull("Did not find resource!", paths); |
| 66 |
} |
66 |
} |
| 67 |
|
67 |
|
|
|
68 |
public void testBug395274() throws Exception { |
| 69 |
Bundle bundle = installer.installBundle("test"); //$NON-NLS-1$ |
| 70 |
URL path = bundle.getEntry("META-INF./MANIFEST.MF"); |
| 71 |
assertNull("found resource!", path); |
| 72 |
path = bundle.getEntry("META-INF/MANIFEST.MF"); |
| 73 |
assertNotNull("Did not find resource!", path); |
| 74 |
path = bundle.getEntry("folder/file1.TXT"); |
| 75 |
assertNull("found resource!", path); |
| 76 |
path = bundle.getEntry("folder/file1.txt"); |
| 77 |
assertNotNull("Did not find resource!", path); |
| 78 |
} |
| 79 |
|
| 68 |
public void testBug328795() throws BundleException { |
80 |
public void testBug328795() throws BundleException { |
| 69 |
Bundle bundle = installer.installBundle("test"); //$NON-NLS-1$ |
81 |
Bundle bundle = installer.installBundle("test"); //$NON-NLS-1$ |
| 70 |
checkEntries(bundle, "notFound\\", 0); // this results in invalid syntax exception which is logged because of trailing escape |
82 |
checkEntries(bundle, "notFound\\", 0); // this results in invalid syntax exception which is logged because of trailing escape |
|
Lines 97-102
public class BundleResourceTests extends CoreTest {
Link Here
|
| 97 |
checkEntries(bundle, "*(*", 2); |
109 |
checkEntries(bundle, "*(*", 2); |
| 98 |
checkEntries(bundle, "*\\)*", 2); |
110 |
checkEntries(bundle, "*\\)*", 2); |
| 99 |
checkEntries(bundle, "*\\(*", 2); |
111 |
checkEntries(bundle, "*\\(*", 2); |
|
|
112 |
checkEntries(bundle, "/./file1.txt", 1); |
| 113 |
checkEntries(bundle, "//file1.txt", 1); |
| 114 |
checkEntries(bundle, "/", 1); |
| 115 |
checkEntries(bundle, "/.", 1); |
| 100 |
} |
116 |
} |
| 101 |
|
117 |
|
| 102 |
public void testBug338081() throws BundleException { |
118 |
public void testBug338081() throws BundleException { |