Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 536 for testDirectory (0.18 sec)

  1. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/jdk7/Jdk7SymlinkTest.groovy

            def testDirectory = temporaryFolder.getTestDirectory().createDir()
    
            when:
            symlink.symlink(new File(testDirectory, 'testFile'), testDirectory.createFile('symFile'))
    
            then:
            symlink.isSymlink(new File(testDirectory, 'testFile'))
    
            when:
            symlink.symlink(new File(testDirectory, 'testDir'), testDirectory.createDir('symDir'))
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultCacheFactoryTest.groovy

            given:
            factory.open(tmpDir.testDirectory, null, [prop: 'value'], mode(Exclusive), null, null)
    
            when:
            factory.open(tmpDir.testDirectory, null, [prop: 'other'], mode(Exclusive), null, null)
    
            then:
            IllegalStateException e = thrown()
            e.message == "Cache '${tmpDir.testDirectory}' is already open with different properties."
    
            cleanup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/file/ProjectLayoutIntegrationTest.groovy

    """
    
            when:
            run()
    
            then:
            outputContains("build dir: " + testDirectory.file("build"))
            outputContains("build dir 2: " + testDirectory.file("out"))
            outputContains("build dir 3: " + testDirectory.file("target"))
            outputContains("build dir 4: " + testDirectory.file("target"))
        }
    
        def "layout is available for injection"() {
            buildFile """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 18:31:24 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/testFixtures/groovy/org/gradle/language/cpp/AbstractCppComponentIntegrationTest.groovy

            componentUnderTest.writeToProject(testDirectory)
    
            and:
            buildFile << configureTargetMachines("machines.os('some-other-family')")
    
            expect:
            succeeds "help"
        }
    
        def "fails configuration when no target machine is configured"() {
            given:
            makeSingleProject()
            componentUnderTest.writeToProject(testDirectory)
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 8K bytes
    - Viewed (0)
  5. platforms/ide/ide/src/testFixtures/groovy/org/gradle/plugins/ide/eclipse/AbstractEclipseIntegrationSpec.groovy

            EclipseClasspathFixture.create(testDirectory, executer.gradleUserHomeDir)
        }
    
        protected EclipseClasspathFixture classpath(String project) {
            EclipseClasspathFixture.create(testDirectory.file(project), executer.gradleUserHomeDir)
        }
    
        protected EclipseWtpComponentFixture getWtpComponent() {
            EclipseWtpComponentFixture.create(testDirectory)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/configure/NativeBinaryRulesTest.groovy

            toolProvider.getExecutableName("base_name") >> "exe_name"
    
            and:
            NativeBinaryRules.assignTools(binary, toolChains, tmpDir.testDirectory)
    
            then:
            executableFile.file == tmpDir.testDirectory.file("exe/comp_name/exe_name")
            installation.directory == tmpDir.testDirectory.file("install/comp_name")
        }
    
        def "test shared library"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/file/BaseDirFileResolverSpec.groovy

            def path = new File(tmpDir.testDirectory, 'dir/FILE.txt')
            assert path.exists() && path.file
    
            expect:
            normalize(path) == path
        }
    
        @Requires(UnitTestPreconditions.Symlinks)
        def "normalizes path which points to a link to something that does not exist"() {
            def file = new File(tmpDir.testDirectory, 'a/other.txt')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  8. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/idea/model/PathFactoryTest.groovy

            factory.addPathVariable('ROOT_DIR', tmpDir.testDirectory)
    
            expect:
            def path = factory.path(tmpDir.file('a', 'b'))
            path.url == 'file://$ROOT_DIR$/a/b'
            path.relPath == '$ROOT_DIR$/a/b'
        }
    
        def createsPathForAFileNotUnderARootDir() {
            factory.addPathVariable('ROOT_DIR', tmpDir.testDirectory)
            def file = tmpDir.testDirectory.parentFile.file('a')
            def relpath = relpath(file)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/SingleIncludePatternFileTreeSpec.groovy

            def visitor = Mock(MinimalFileTree.MinimalFileTreeStructureVisitor)
    
            fileTree = new SingleIncludePatternFileTree(tempDir.testDirectory, "pattern", spec)
    
            when:
            fileTree.visitStructure(visitor, owner)
    
            then:
            1 * visitor.visitFileTree(tempDir.testDirectory, _, owner) >> { dir, patterns, fileTree ->
                assert patterns.includes == ["pattern"] as Set
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/TestWithTempFiles.kt

        protected
        val root: File
            get() = tempFolder.testDirectory
    
        /**
         * See [org.junit.rules.TemporaryFolder.newFolder]
         */
        fun newFolder(): File =
            tempFolder.testDirectory.createDir()
    
        protected
        fun file(fileName: String): File =
            tempFolder.testDirectory.file(fileName)
    
        protected
        fun newFile(fileName: String): File =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top