|
@@ -153,10 +153,15 @@ public class TestOfflineImageViewer {
|
|
|
dirCount++;
|
|
|
writtenFiles.put(emptydir.toString(), hdfs.getFileStatus(emptydir));
|
|
|
|
|
|
- //Create a directory whose name should be escaped in XML
|
|
|
+ //Create directories whose name should be escaped in XML
|
|
|
Path invalidXMLDir = new Path("/dirContainingInvalidXMLChar\u0000here");
|
|
|
hdfs.mkdirs(invalidXMLDir);
|
|
|
dirCount++;
|
|
|
+ Path entityRefXMLDir = new Path("/dirContainingEntityRef&here");
|
|
|
+ hdfs.mkdirs(entityRefXMLDir);
|
|
|
+ dirCount++;
|
|
|
+ writtenFiles.put(entityRefXMLDir.toString(),
|
|
|
+ hdfs.getFileStatus(entityRefXMLDir));
|
|
|
|
|
|
//Create a directory with sticky bits
|
|
|
Path stickyBitDir = new Path("/stickyBit");
|