Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for assertIsEmptyDir (0.23 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/UndefinedBuildExecutionIntegrationTest.groovy

            file("buildSrc").assertIsEmptyDir()
            executer.gradleUserHomeDir.file(BuildScopeCacheDir.UNDEFINED_BUILD).assertDoesNotExist()
        }
    
        def "does not fail when executing #flag in undefined build"() {
            when:
            executer.requireDaemon().requireIsolatedDaemons()
            succeeds(flag)
    
            then:
            testDirectory.assertIsEmptyDir()
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 09:18:31 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/PreCreateOutputParentsStepTest.groovy

                visitor.visitLocalState(localStateFile)
                visitor.visitDestroyable(destroyableFile)
            }
    
            then:
            outputDir.assertIsEmptyDir()
            outputFile.parentFile.assertIsEmptyDir()
            localStateFile.parentFile.assertIsEmptyDir()
            !destroyableFile.parentFile.exists()
    
            then:
            1 * delegate.execute(work, context)
            0 * _
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:22 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/ResolvedGeneratedJarsIntegrationTest.groovy

            def generatedJarsDirectory = "user-home/caches/$version/generated-gradle-jars"
    
            when:
            succeeds("help")
    
            then:
            file(generatedJarsDirectory).assertIsEmptyDir()
    
            when:
            succeeds("classes")
    
            then:
            file("$generatedJarsDirectory/gradle-api-${version}.jar").assertExists()
    
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/GradleImplDepsGenerationIntegrationTest.groovy

            given:
            buildFile << applyJavaPlugin()
    
            when:
            succeeds 'build'
    
            then:
            file("user-home/caches/${distribution.version.version}/generated-gradle-jars").assertIsEmptyDir()
        }
    
        def "buildSrc project implicitly forces generation of Gradle API JAR"() {
            given:
            buildFile << applyJavaPlugin()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/BasicZincScalaCompilerIntegrationTest.groovy

            scalaClassFile("compile/test/Person.class").exists()
        }
    
        def compileBadCode() {
            badCode()
    
            expect:
            fails("compileScala")
            file("build/classes/scala/main").assertIsEmptyDir()
    
            if (versionNumber.major >= 3) {
                result.assertHasErrorOutput("src/main/scala/compile/test/Person.scala:4:28: Found:    (42 : Int)\nRequired: String")
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. platforms/core-execution/build-cache-packaging/src/test/groovy/org/gradle/caching/internal/packaging/impl/TarBuildCacheEntryPackerTest.groovy

            noExceptionThrown()
    
            when:
            def input = new ByteArrayInputStream(output.toByteArray())
            unpack input, prop("empty", DIRECTORY, targetDir)
    
            then:
            targetDir.assertIsEmptyDir()
        }
    
        def "catch escaping path in tar archive entry during unpacking"() {
            given:
            def targetDir = temporaryFolder.file("target")
            def output = new ByteArrayOutputStream()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top