Examples of file()


Examples of org.gradle.util.TestFile.file()

        visitor.endVisit();

        TestFile expandDir = tmpDir.getDir().file("expanded");
        zipFile.unzipTo(expandDir);
        expandDir.file("dir/file1").assertContents(equalTo("contents of dir/file1"));
        expandDir.file("file2").assertContents(equalTo("contents of file2"));
    }

    @Test
    public void wrapsFailureToOpenOutputFile() {
View Full Code Here

Examples of org.gradle.util.TestFile.file()

        visitor.endVisit();

        TestFile expandDir = tmpDir.getDir().file("expanded");
        zipFile.unzipTo(expandDir);
        expandDir.file("dir/file1").assertContents(equalTo("contents of dir/file1"));
        expandDir.file("file2").assertContents(equalTo("contents of file2"));
    }

    @Test
    public void wrapsFailureToOpenOutputFile() {
        final TestFile zipFile = tmpDir.createDir("test.zip");
View Full Code Here

Examples of org.gradle.util.TestFile.file()

    }
   
    @Test
    public void deletesExtraFilesFromDestinationDirectoryAtTheEndOfVisit() {
        TestFile destDir = tmpDir.createDir("dest");
        destDir.file("subdir/included.txt").createFile();
        destDir.file("subdir/extra.txt").createFile();
        destDir.file("included.txt").createFile();
        destDir.file("extra.txt").createFile();

        visitor.startVisit(action(destDir));
View Full Code Here

Examples of org.gradle.util.TestFile.file()

   
    @Test
    public void deletesExtraFilesFromDestinationDirectoryAtTheEndOfVisit() {
        TestFile destDir = tmpDir.createDir("dest");
        destDir.file("subdir/included.txt").createFile();
        destDir.file("subdir/extra.txt").createFile();
        destDir.file("included.txt").createFile();
        destDir.file("extra.txt").createFile();

        visitor.startVisit(action(destDir));
        visitor.visitDir(dir("subdir"));
View Full Code Here

Examples of org.gradle.util.TestFile.file()

    @Test
    public void deletesExtraFilesFromDestinationDirectoryAtTheEndOfVisit() {
        TestFile destDir = tmpDir.createDir("dest");
        destDir.file("subdir/included.txt").createFile();
        destDir.file("subdir/extra.txt").createFile();
        destDir.file("included.txt").createFile();
        destDir.file("extra.txt").createFile();

        visitor.startVisit(action(destDir));
        visitor.visitDir(dir("subdir"));
        visitor.visitFile(file("subdir/included.txt"));
View Full Code Here

Examples of org.gradle.util.TestFile.file()

    public void deletesExtraFilesFromDestinationDirectoryAtTheEndOfVisit() {
        TestFile destDir = tmpDir.createDir("dest");
        destDir.file("subdir/included.txt").createFile();
        destDir.file("subdir/extra.txt").createFile();
        destDir.file("included.txt").createFile();
        destDir.file("extra.txt").createFile();

        visitor.startVisit(action(destDir));
        visitor.visitDir(dir("subdir"));
        visitor.visitFile(file("subdir/included.txt"));
        visitor.visitFile(file("included.txt"));
View Full Code Here

Examples of org.gradle.util.TestFile.file()

        visitor.endVisit();

        TestFile expandDir = tmpDir.getDir().file("expanded");
        tarFile.untarTo(expandDir);
        expandDir.file("dir/file1").assertContents(equalTo("contents of dir/file1"));
        expandDir.file("file2").assertContents(equalTo("contents of file2"));
    }

    @Test
    public void createsGzipCompressedTarFile() {
View Full Code Here

Examples of org.gradle.util.TestFile.file()

        visitor.endVisit();

        TestFile expandDir = tmpDir.getDir().file("expanded");
        tarFile.untarTo(expandDir);
        expandDir.file("dir/file1").assertContents(equalTo("contents of dir/file1"));
        expandDir.file("file2").assertContents(equalTo("contents of file2"));
    }

    @Test
    public void createsGzipCompressedTarFile() {
        final TestFile tarFile = tmpDir.getDir().file("test.tgz");
View Full Code Here

Examples of org.gradle.util.TestFile.file()

    }

    @Test
    public void deletesExtraDirectoriesFromDestinationDirectoryAtTheEndOfVisit() {
        TestFile destDir = tmpDir.createDir("dest");
        destDir.file("included.txt").createFile();
        destDir.file("extra/extra.txt").createFile();

        visitor.startVisit(action(destDir));
        visitor.visitFile(file("included.txt"));
        visitor.endVisit();
View Full Code Here

Examples of org.gradle.util.TestFile.file()

        visitor.endVisit();

        TestFile expandDir = tmpDir.getDir().file("expanded");
        tarFile.untarTo(expandDir);
        expandDir.file("dir/file1").assertContents(equalTo("contents of dir/file1"));
        expandDir.file("file2").assertContents(equalTo("contents of file2"));
    }

    @Test
    public void createsBzip2CompressedTarFile() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.