use of org.jboss.galleon.diff.FsEntry in project galleon by wildfly.
the class BasicFsEntriesTestCase method assertRootEntry.
@Override
protected void assertRootEntry(FsEntry rootEntry) throws Exception {
final FsEntry expectedRoot = new FsEntry(null, root);
final FsEntry a = new FsEntry(expectedRoot, root.resolve("a"));
final FsEntry b = new FsEntry(a, root.resolve("a/b"));
new FsEntry(b, root.resolve("a/b/file1.txt"));
new FsEntry(b, root.resolve("a/b/file2.txt"));
new FsEntry(b, root.resolve("a/b/f"));
final FsEntry c = new FsEntry(b, root.resolve("a/b/c"));
new FsEntry(c, root.resolve("a/b/c/file1.txt"));
final FsEntry d = new FsEntry(a, root.resolve("a/d"));
new FsEntry(d, root.resolve("a/d/file1.txt"));
final FsEntry e = new FsEntry(expectedRoot, root.resolve("e"));
new FsEntry(e, root.resolve("e/file1.txt"));
new FsEntry(expectedRoot, root.resolve("file1.txt"));
new FsEntry(expectedRoot, root.resolve("g"));
assertIdentical(expectedRoot, rootEntry);
}
use of org.jboss.galleon.diff.FsEntry in project galleon by wildfly.
the class BasicWildcardFilteringTestCase method assertRootEntry.
@Override
protected void assertRootEntry(FsEntry rootEntry) throws Exception {
final FsEntry expectedRoot = new FsEntry(null, root);
final FsEntry a = new FsEntry(expectedRoot, root.resolve("a"));
final FsEntry b = new FsEntry(a, root.resolve("a/b"));
new FsEntry(b, root.resolve("a/b/file2.txt"));
final FsEntry c = new FsEntry(b, root.resolve("a/b/c"));
new FsEntry(c, root.resolve("a/b/c/file1.txt"));
new FsEntry(b, root.resolve("a/b/f"));
new FsEntry(a, root.resolve("a/d"));
new FsEntry(expectedRoot, root.resolve("g"));
assertIdentical(expectedRoot, rootEntry);
}
Aggregations