Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 193 for TestFile (0.38 sec)

  1. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

            new TestFileHelper(this).tgzTo(tarFile, readOnly);
            return this;
        }
    
        public TestFile tbzTo(TestFile tarFile) {
            return tbzTo(tarFile, false);
        }
    
        public TestFile tbzTo(TestFile tarFile, boolean readOnly) {
            new TestFileHelper(this).tbzTo(tarFile, readOnly);
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/integTest/groovy/org/gradle/integtests/ExecIntegrationTest.groovy

                    def testFile = file("$buildDir/out.txt")
                    outputs.file testFile
                    executable = org.gradle.internal.jvm.Jvm.current().getJavaExecutable()
                    args '-cp', sourceSets.main.runtimeClasspath.asPath, 'org.gradle.TestMain', projectDir, testFile
                    doLast {
                        assert testFile.exists()
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/integtests/JavaProjectIntegrationTest.groovy

            testFile("build/classes/java/test/test.resource").assertDoesNotExist()
    
            testFile("build/classes/java/main/Main.class").assertExists()
            testFile("build/classes/java/test/TestFoo.class").assertExists()
        }
    
        @Test
        void generatesArtifactsWhenVersionIsEmpty() {
            testFile("settings.gradle") << "rootProject.name = 'empty'"
            def buildFile = testFile("build.gradle")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/internal/fingerprint/impl/AbsolutePathFileCollectionFingerprinterTest.groovy

        }
    
        def "fingerprint includes existing root elements"() {
            given:
            TestFile file = tmpDir.createFile('file1')
            TestFile dir = tmpDir.createDir('dir')
            TestFile dir2 = dir.createDir('dir2')
            TestFile file2 = dir2.createFile('file2')
            TestFile noExist = tmpDir.file('file3')
    
            when:
            def fingerprint = fingerprinter.fingerprint(files(file, dir, noExist))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 20 16:00:23 UTC 2022
    - 9.9K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/internal/classpath/transforms/ClasspathElementTransformTest.groovy

        }
    
        def "instrumentation for #factory preserves classes"() {
            given:
            def testFile = jar(testDir.file("thing.jar")) {
                manifest {}
                entry("Foo.class", classOne())
            }
    
            expect:
            with(transformJar(factory, testFile)) {
                if (expectManifest) {
                    assertManifestPresentAndFirstEntry()
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 14 09:24:02 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/MissingScriptFixture.groovy

            }
        }
    
        static interface Scenario {
    
            void setup(AbstractIntegrationSpec spec)
    
            void createInitialBuildLayoutIn(TestFile dir, ScriptLanguage scriptLanguage)
    
            TestFile addMissingScript(TestFile dir, ScriptLanguage scriptLanguage)
    
            String getDisplayName(String scriptExtension)
        }
    
        static class MissingBuild implements Scenario {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. testing/integ-test/src/integTest/groovy/org/gradle/integtests/ProjectLoadingIntegrationTest.java

        }
    
        @Test
        public void canDetermineRootProjectAndDefaultProjectBasedOnBuildFile() {
            testFile("settings.gradle").write("include('child')");
    
            TestFile rootBuildFile = testFile("build.gradle");
            rootBuildFile.write("task('do-stuff')");
    
            TestFile childBuildFile = testFile("child/build.gradle");
            childBuildFile.write("task('do-stuff')");
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/AbstractFileLockManagerTest.groovy

        TestFile testFile
        TestFile testFileLock
        TestFile testDir
        TestFile testDirLock
    
        List<Closeable> openedLocks = []
    
        def setup() {
            testFile = tmpDir.createFile("state.bin")
            testFileLock = tmpDir.file(testFile.name + ".lock")
            testDir = tmpDir.createDir("lockable-dir")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/AbstractUndeclaredBuildInputsIntegrationTest.groovy

            "constructing a byte channel with open options" | (TestFile it) -> { UndeclaredFileAccess.filesNewByteChannelWithOpenOptions(testFilePath(it)) }
            "reading lines from a file"                     | (TestFile it) -> { UndeclaredFileAccess.fileReadLines(testFilePath(it)) }
        }
    }
    
    class FileUtils {
        static String testFilePath(TestFile testDirectory) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/maven/AbstractMavenModule.groovy

        }
    
        void assertChecksumsPublishedFor(TestFile testFile) {
            def sha1File = sha1File(testFile)
            sha1File.assertIsFile()
            assert HashCode.fromString(sha1File.text) == Hashing.sha1().hashFile(testFile)
            if (extraChecksums && !(testFile.name in missingExtraChecksums)) {
                def sha256File = sha256File(testFile)
                sha256File.assertIsFile()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 29.4K bytes
    - Viewed (0)
Back to top