use of com.facebook.buck.io.ProjectFilesystemDelegate in project buck by facebook.
the class AutoSparseIntegrationTest method testNotExecutableFile.
@Test
public void testNotExecutableFile() {
ProjectFilesystemDelegate delegate = createDelegate();
Assume.assumeFalse(delegate.isExecutable(repoPath.resolve("file2")));
}
use of com.facebook.buck.io.ProjectFilesystemDelegate in project buck by facebook.
the class AutoSparseIntegrationTest method testRelativePath.
@Test
public void testRelativePath() {
ProjectFilesystemDelegate delegate = createDelegate();
Path path = delegate.getPathForRelativePath(Paths.get("subdir/file_in_subdir"));
Assert.assertEquals(path, repoPath.resolve("subdir/file_in_subdir"));
}
use of com.facebook.buck.io.ProjectFilesystemDelegate in project buck by facebook.
the class AutoSparseIntegrationTest method testExecutableFile.
@Test
public void testExecutableFile() {
ProjectFilesystemDelegate delegate = createDelegate();
Assume.assumeTrue(delegate.isExecutable(repoPath.resolve("file1")));
}
use of com.facebook.buck.io.ProjectFilesystemDelegate in project buck by facebook.
the class AutoSparseIntegrationTest method testNotSymLink.
@Test
public void testNotSymLink() {
ProjectFilesystemDelegate delegate = createDelegate();
Assume.assumeFalse(delegate.isSymlink(repoPath.resolve("file2")));
}
use of com.facebook.buck.io.ProjectFilesystemDelegate in project buck by facebook.
the class AutoSparseIntegrationTest method testExistsUntracked.
@Test
public void testExistsUntracked() throws FileNotFoundException, IOException {
ProjectFilesystemDelegate delegate = createDelegate();
File newFile = repoPath.resolve("newFile").toFile();
new FileOutputStream(newFile).close();
Assume.assumeTrue(delegate.exists(newFile.toPath()));
}
Aggregations