Search in sources :

Example 6 with FsEntry

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);
}
Also used : FsEntry(org.jboss.galleon.diff.FsEntry)

Example 7 with FsEntry

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);
}
Also used : FsEntry(org.jboss.galleon.diff.FsEntry)

Aggregations

FsEntry (org.jboss.galleon.diff.FsEntry)7 IOException (java.io.IOException)3 Path (java.nio.file.Path)3 BufferedReader (java.io.BufferedReader)1 BufferedWriter (java.io.BufferedWriter)1 ArrayList (java.util.ArrayList)1 ProvisioningConfig (org.jboss.galleon.config.ProvisioningConfig)1 FsDiff (org.jboss.galleon.diff.FsDiff)1 FsEntryFactory (org.jboss.galleon.diff.FsEntryFactory)1 ProvisioningRuntime (org.jboss.galleon.runtime.ProvisioningRuntime)1