Lines 62-67
Link Here
|
62 |
import java.util.jar.JarEntry; |
62 |
import java.util.jar.JarEntry; |
63 |
import java.util.jar.JarOutputStream; |
63 |
import java.util.jar.JarOutputStream; |
64 |
import org.openide.util.Enumerations; |
64 |
import org.openide.util.Enumerations; |
|
|
65 |
import org.openide.util.Utilities; |
65 |
|
66 |
|
66 |
public class XMLFileSystemTestHid extends TestBaseHid { |
67 |
public class XMLFileSystemTestHid extends TestBaseHid { |
67 |
/** Factory for all filesystems that want to use TCK in this class. |
68 |
/** Factory for all filesystems that want to use TCK in this class. |
Lines 106-112
Link Here
|
106 |
|
107 |
|
107 |
resources = new String[] {"a/b/c","a/b1/c"}; |
108 |
resources = new String[] {"a/b/c","a/b1/c"}; |
108 |
|
109 |
|
109 |
if (!FileSystemFactoryHid.switchXMLSystem(xfs, this, createXMLLayer().toURI().toURL())) { |
110 |
if (!FileSystemFactoryHid.switchXMLSystem(xfs, this, Utilities.toURI(createXMLLayer()).toURL())) { |
110 |
// OK, unsupported |
111 |
// OK, unsupported |
111 |
return; |
112 |
return; |
112 |
} |
113 |
} |
Lines 119-125
Link Here
|
119 |
@Override |
120 |
@Override |
120 |
protected void setUp() throws Exception { |
121 |
protected void setUp() throws Exception { |
121 |
File f = createXMLLayer(); |
122 |
File f = createXMLLayer(); |
122 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
123 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
123 |
this.testedFS = xfs; |
124 |
this.testedFS = xfs; |
124 |
this.allTestedFS = new FileSystem[] { xfs }; |
125 |
this.allTestedFS = new FileSystem[] { xfs }; |
125 |
super.setUp(); |
126 |
super.setUp(); |
Lines 151-163
Link Here
|
151 |
|
152 |
|
152 |
|
153 |
|
153 |
|
154 |
|
154 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
155 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
155 |
|
156 |
|
156 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
157 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
157 |
assertEquals ("Four bytes there", 4, fo.getSize ()); |
158 |
assertEquals ("Four bytes there", 4, fo.getSize ()); |
158 |
registerDefaultListener (fo); |
159 |
registerDefaultListener (fo); |
159 |
|
160 |
|
160 |
if (!FileSystemFactoryHid.switchXMLSystem(xfs, this, f2.toURI().toURL())) { |
161 |
if (!FileSystemFactoryHid.switchXMLSystem(xfs, this, Utilities.toURI(f2).toURL())) { |
161 |
// OK, unsupported |
162 |
// OK, unsupported |
162 |
return; |
163 |
return; |
163 |
} |
164 |
} |
Lines 190-202
Link Here
|
190 |
|
191 |
|
191 |
|
192 |
|
192 |
|
193 |
|
193 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
194 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
194 |
|
195 |
|
195 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
196 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
196 |
assertEquals ("Four bytes there", 4, fo.getSize ()); |
197 |
assertEquals ("Four bytes there", 4, fo.getSize ()); |
197 |
registerDefaultListener (fo); |
198 |
registerDefaultListener (fo); |
198 |
|
199 |
|
199 |
if (!FileSystemFactoryHid.switchXMLSystem(xfs, this, f2.toURI().toURL())) { |
200 |
if (!FileSystemFactoryHid.switchXMLSystem(xfs, this, Utilities.toURI(f2).toURL())) { |
200 |
// OK, unsupported |
201 |
// OK, unsupported |
201 |
return; |
202 |
return; |
202 |
} |
203 |
} |
Lines 230-242
Link Here
|
230 |
|
231 |
|
231 |
|
232 |
|
232 |
|
233 |
|
233 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
234 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
234 |
|
235 |
|
235 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
236 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
236 |
assertEquals("Old value is in the attribute", "old", fo.getAttribute("value")); |
237 |
assertEquals("Old value is in the attribute", "old", fo.getAttribute("value")); |
237 |
registerDefaultListener (fo); |
238 |
registerDefaultListener (fo); |
238 |
|
239 |
|
239 |
if (!FileSystemFactoryHid.switchXMLSystem(xfs, this, f2.toURI().toURL())) { |
240 |
if (!FileSystemFactoryHid.switchXMLSystem(xfs, this, Utilities.toURI(f2).toURL())) { |
240 |
// OK, unsupported |
241 |
// OK, unsupported |
241 |
return; |
242 |
return; |
242 |
} |
243 |
} |
Lines 264-276
Link Here
|
264 |
|
265 |
|
265 |
|
266 |
|
266 |
|
267 |
|
267 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
268 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
268 |
|
269 |
|
269 |
FileObject fo = xfs.findResource("TestModule/sample.txt"); |
270 |
FileObject fo = xfs.findResource("TestModule/sample.txt"); |
270 |
assertEquals("Four bytes there", 4, fo.getSize()); |
271 |
assertEquals("Four bytes there", 4, fo.getSize()); |
271 |
registerDefaultListener(fo); |
272 |
registerDefaultListener(fo); |
272 |
|
273 |
|
273 |
if (!FileSystemFactoryHid.switchXMLSystem(xfs, this, f2.toURI().toURL())) { |
274 |
if (!FileSystemFactoryHid.switchXMLSystem(xfs, this, Utilities.toURI(f2).toURL())) { |
274 |
// OK, unsupported |
275 |
// OK, unsupported |
275 |
return; |
276 |
return; |
276 |
} |
277 |
} |
Lines 300-306
Link Here
|
300 |
f.lastModified() < f2.lastModified() |
301 |
f.lastModified() < f2.lastModified() |
301 |
); |
302 |
); |
302 |
} |
303 |
} |
303 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
304 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
304 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
305 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
305 |
assertNotNull(fo); |
306 |
assertNotNull(fo); |
306 |
assertEquals(fo.lastModified().getTime(), f.lastModified()); |
307 |
assertEquals(fo.lastModified().getTime(), f.lastModified()); |
Lines 325-331
Link Here
|
325 |
"</filesystem>\n" |
326 |
"</filesystem>\n" |
326 |
); |
327 |
); |
327 |
|
328 |
|
328 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
329 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
329 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
330 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
330 |
assertNotNull(fo); |
331 |
assertNotNull(fo); |
331 |
|
332 |
|
Lines 349-355
Link Here
|
349 |
+ " </folder>\n" |
350 |
+ " </folder>\n" |
350 |
+ "</filesystem>"); |
351 |
+ "</filesystem>"); |
351 |
|
352 |
|
352 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
353 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
353 |
final LocalFileSystem lfs = new LocalFileSystem(); |
354 |
final LocalFileSystem lfs = new LocalFileSystem(); |
354 |
lfs.setRootDirectory(getWorkDir()); |
355 |
lfs.setRootDirectory(getWorkDir()); |
355 |
MultiFileSystem mfs = new MultiFileSystem(lfs, xfs); |
356 |
MultiFileSystem mfs = new MultiFileSystem(lfs, xfs); |
Lines 376-382
Link Here
|
376 |
); |
377 |
); |
377 |
Count.cnt = 0; |
378 |
Count.cnt = 0; |
378 |
|
379 |
|
379 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
380 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
380 |
/** the following is a fake implementation of filesystem that |
381 |
/** the following is a fake implementation of filesystem that |
381 |
* allows us to prevent calls to fileObject.getAttributes() |
382 |
* allows us to prevent calls to fileObject.getAttributes() |
382 |
*/ |
383 |
*/ |
Lines 499-505
Link Here
|
499 |
"</filesystem>\n" |
500 |
"</filesystem>\n" |
500 |
); |
501 |
); |
501 |
|
502 |
|
502 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
503 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
503 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
504 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
504 |
assertNotNull(fo); |
505 |
assertNotNull(fo); |
505 |
|
506 |
|
Lines 524-530
Link Here
|
524 |
"</filesystem>\n" |
525 |
"</filesystem>\n" |
525 |
); |
526 |
); |
526 |
|
527 |
|
527 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
528 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
528 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
529 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
529 |
assertNotNull(fo); |
530 |
assertNotNull(fo); |
530 |
|
531 |
|
Lines 549-555
Link Here
|
549 |
"</filesystem>\n" |
550 |
"</filesystem>\n" |
550 |
); |
551 |
); |
551 |
|
552 |
|
552 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
553 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
553 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
554 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
554 |
assertNotNull(fo); |
555 |
assertNotNull(fo); |
555 |
|
556 |
|
Lines 579-589
Link Here
|
579 |
"</filesystem>\n" |
580 |
"</filesystem>\n" |
580 |
); |
581 |
); |
581 |
|
582 |
|
582 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
583 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
583 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
584 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
584 |
assertNotNull(fo); |
585 |
assertNotNull(fo); |
585 |
|
586 |
|
586 |
XMLFileSystem realXMLFS = new XMLFileSystem(f.toURI().toURL()); |
587 |
XMLFileSystem realXMLFS = new XMLFileSystem(Utilities.toURI(f).toURL()); |
587 |
FileObject realfo = realXMLFS.findResource("TestModule/sample.txt"); |
588 |
FileObject realfo = realXMLFS.findResource("TestModule/sample.txt"); |
588 |
assertNotNull(realfo); |
589 |
assertNotNull(realfo); |
589 |
|
590 |
|
Lines 620-626
Link Here
|
620 |
"</filesystem>\n" |
621 |
"</filesystem>\n" |
621 |
); |
622 |
); |
622 |
|
623 |
|
623 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
624 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
624 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
625 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
625 |
FileObject snd = xfs.findResource ("TestModule/snd.txt"); |
626 |
FileObject snd = xfs.findResource ("TestModule/snd.txt"); |
626 |
assertNotNull(fo); |
627 |
assertNotNull(fo); |
Lines 721-727
Link Here
|
721 |
"</filesystem>\n" |
722 |
"</filesystem>\n" |
722 |
); |
723 |
); |
723 |
|
724 |
|
724 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
725 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
725 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
726 |
FileObject fo = xfs.findResource ("TestModule/sample.txt"); |
726 |
assertNotNull(fo); |
727 |
assertNotNull(fo); |
727 |
|
728 |
|
Lines 770-777
Link Here
|
770 |
) |
771 |
) |
771 |
); |
772 |
); |
772 |
|
773 |
|
773 |
URL url1 = new URL("jar:" + jar1.toURI() + "!/layer.xml"); |
774 |
URL url1 = new URL("jar:" + Utilities.toURI(jar1) + "!/layer.xml"); |
774 |
URL url2 = new URL("jar:" + jar2.toURI() + "!/layer.xml"); |
775 |
URL url2 = new URL("jar:" + Utilities.toURI(jar2) + "!/layer.xml"); |
775 |
|
776 |
|
776 |
FileSystem xfs1 = FileSystemFactoryHid.createXMLSystem(getName(), this, url1); |
777 |
FileSystem xfs1 = FileSystemFactoryHid.createXMLSystem(getName(), this, url1); |
777 |
FileObject fo1 = xfs1.findResource("dir/file"); |
778 |
FileObject fo1 = xfs1.findResource("dir/file"); |
Lines 901-907
Link Here
|
901 |
File f2 = changeOfAnAttributeInLayerIsFiredgenerateLayer("Folder", "java.awt.Button"); |
902 |
File f2 = changeOfAnAttributeInLayerIsFiredgenerateLayer("Folder", "java.awt.Button"); |
902 |
File f3 = changeOfAnAttributeInLayerIsFiredgenerateLayer("NoChange", "nochange"); |
903 |
File f3 = changeOfAnAttributeInLayerIsFiredgenerateLayer("NoChange", "nochange"); |
903 |
|
904 |
|
904 |
fs.setXmlUrls (new URL[] { f1.toURI().toURL(), f3.toURI().toURL() } ); |
905 |
fs.setXmlUrls (new URL[] { Utilities.toURI(f1).toURL(), Utilities.toURI(f3).toURL() } ); |
905 |
|
906 |
|
906 |
FileObject file = fs.findResource("Folder/empty.xml"); |
907 |
FileObject file = fs.findResource("Folder/empty.xml"); |
907 |
assertNotNull("File found in layer", file); |
908 |
assertNotNull("File found in layer", file); |
Lines 917-923
Link Here
|
917 |
assertAttr("The first value is list", file, "value", "java.awt.List"); |
918 |
assertAttr("The first value is list", file, "value", "java.awt.List"); |
918 |
assertAttr("Imutable value is nochange", nochange, "value", "nochange"); |
919 |
assertAttr("Imutable value is nochange", nochange, "value", "nochange"); |
919 |
|
920 |
|
920 |
fs.setXmlUrls (new URL[] { f2.toURI().toURL(), f3.toURI().toURL() } ); |
921 |
fs.setXmlUrls (new URL[] { Utilities.toURI(f2).toURL(), Utilities.toURI(f3).toURL() } ); |
921 |
String v2 = (String) file.getAttribute("value"); |
922 |
String v2 = (String) file.getAttribute("value"); |
922 |
assertEquals("The second value is button", "java.awt.Button", v2); |
923 |
assertEquals("The second value is button", "java.awt.Button", v2); |
923 |
|
924 |
|
Lines 952-958
Link Here
|
952 |
LocalFileSystem target = new LocalFileSystem(); |
953 |
LocalFileSystem target = new LocalFileSystem(); |
953 |
target.setRootDirectory(r); |
954 |
target.setRootDirectory(r); |
954 |
|
955 |
|
955 |
FileSystem source = FileSystemFactoryHid.createXMLSystem(getName(), this, f.toURI().toURL()); |
956 |
FileSystem source = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f).toURL()); |
956 |
FileObject template = source.findResource("Templates/Other/special"); |
957 |
FileObject template = source.findResource("Templates/Other/special"); |
957 |
assertNotNull("template found", template); |
958 |
assertNotNull("template found", template); |
958 |
FileObject foTested = target.getRoot().createData("copiedTemplate"); |
959 |
FileObject foTested = target.getRoot().createData("copiedTemplate"); |
Lines 1077-1083
Link Here
|
1077 |
w.close(); |
1078 |
w.close(); |
1078 |
} |
1079 |
} |
1079 |
|
1080 |
|
1080 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f1.toURI().toURL(), f2.toURI().toURL()); |
1081 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f1).toURL(), Utilities.toURI(f2).toURL()); |
1081 |
|
1082 |
|
1082 |
|
1083 |
|
1083 |
FileObject just1 = xfs.findResource("just1/empty.xml"); |
1084 |
FileObject just1 = xfs.findResource("just1/empty.xml"); |
Lines 1089-1107
Link Here
|
1089 |
String layers2 = layers(just2); |
1090 |
String layers2 = layers(just2); |
1090 |
String layersB = layers(both); |
1091 |
String layersB = layers(both); |
1091 |
|
1092 |
|
1092 |
if (!layersR.contains(f1.toURI().toString())) { |
1093 |
if (!layersR.contains(Utilities.toURI(f1).toString())) { |
1093 |
fail("Missing " + f1.toURI().toString() + "\ninside: " + layersR); |
1094 |
fail("Missing " + Utilities.toURI(f1).toString() + "\ninside: " + layersR); |
1094 |
} |
1095 |
} |
1095 |
if (!layersR.contains(f2.toURI().toString())) { |
1096 |
if (!layersR.contains(Utilities.toURI(f2).toString())) { |
1096 |
fail("Missing " + f2.toURI().toString() + "\ninside: " + layersR); |
1097 |
fail("Missing " + Utilities.toURI(f2).toString() + "\ninside: " + layersR); |
1097 |
} |
1098 |
} |
1098 |
|
1099 |
|
1099 |
assertEquals(f1.toURI().toString(), layers1); |
1100 |
assertEquals(Utilities.toURI(f1).toString(), layers1); |
1100 |
assertEquals(f2.toURI().toString(), layers2); |
1101 |
assertEquals(Utilities.toURI(f2).toString(), layers2); |
1101 |
if (!layersB.contains(f1.toURI().toString())) { |
1102 |
if (!layersB.contains(Utilities.toURI(f1).toString())) { |
1102 |
fail("Missing " + f1 + "\ninside: " + layersB); |
1103 |
fail("Missing " + f1 + "\ninside: " + layersB); |
1103 |
} |
1104 |
} |
1104 |
if (!layersB.contains(f2.toURI().toString())) { |
1105 |
if (!layersB.contains(Utilities.toURI(f2).toString())) { |
1105 |
fail("Missing " + f2 + "\ninside: " + layersB); |
1106 |
fail("Missing " + f2 + "\ninside: " + layersB); |
1106 |
} |
1107 |
} |
1107 |
} |
1108 |
} |
Lines 1119-1125
Link Here
|
1119 |
+ "</filesystem>"); |
1120 |
+ "</filesystem>"); |
1120 |
w.close(); |
1121 |
w.close(); |
1121 |
|
1122 |
|
1122 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, layer.toURI().toURL()); |
1123 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(layer).toURL()); |
1123 |
|
1124 |
|
1124 |
FileObject fo = xfs.findResource("f/empty.xml"); |
1125 |
FileObject fo = xfs.findResource("f/empty.xml"); |
1125 |
assertNotNull("File found", fo); |
1126 |
assertNotNull("File found", fo); |
Lines 1142-1166
Link Here
|
1142 |
File f1 = writeFile("layer1.xml", |
1143 |
File f1 = writeFile("layer1.xml", |
1143 |
"<filesystem>\n" + |
1144 |
"<filesystem>\n" + |
1144 |
"<folder name='d'>\n" + |
1145 |
"<folder name='d'>\n" + |
1145 |
"<file name='f' url='" + c1.toURI() + "'/>" + |
1146 |
"<file name='f' url='" + Utilities.toURI(c1) + "'/>" + |
1146 |
"</folder>\n" + |
1147 |
"</folder>\n" + |
1147 |
"</filesystem>\n" |
1148 |
"</filesystem>\n" |
1148 |
); |
1149 |
); |
1149 |
File f2 = writeFile("layer2.xml", |
1150 |
File f2 = writeFile("layer2.xml", |
1150 |
"<filesystem>\n" + |
1151 |
"<filesystem>\n" + |
1151 |
"<folder name='d'>\n" + |
1152 |
"<folder name='d'>\n" + |
1152 |
"<file name='f' url='" + c2.toURI() + "'>" + |
1153 |
"<file name='f' url='" + Utilities.toURI(c2) + "'>" + |
1153 |
" <attr name='weight' intvalue='100'/>" + |
1154 |
" <attr name='weight' intvalue='100'/>" + |
1154 |
"</file>\n" + |
1155 |
"</file>\n" + |
1155 |
"</folder>\n" + |
1156 |
"</folder>\n" + |
1156 |
"</filesystem>\n" |
1157 |
"</filesystem>\n" |
1157 |
); |
1158 |
); |
1158 |
|
1159 |
|
1159 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f2.toURI().toURL(), f1.toURI().toURL()); |
1160 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f2).toURL(), Utilities.toURI(f1).toURL()); |
1160 |
FileObject fo = xfs.findResource("d/f"); |
1161 |
FileObject fo = xfs.findResource("d/f"); |
1161 |
assertNotNull(fo); |
1162 |
assertNotNull(fo); |
1162 |
assertEquals(6, fo.getSize()); |
1163 |
assertEquals(6, fo.getSize()); |
1163 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, f1.toURI().toURL(), f2.toURI().toURL()); |
1164 |
xfs = FileSystemFactoryHid.createXMLSystem(getName(), this, Utilities.toURI(f1).toURL(), Utilities.toURI(f2).toURL()); |
1164 |
fo = xfs.findResource("d/f"); |
1165 |
fo = xfs.findResource("d/f"); |
1165 |
assertNotNull(fo); |
1166 |
assertNotNull(fo); |
1166 |
assertEquals(6, fo.getSize()); |
1167 |
assertEquals(6, fo.getSize()); |