- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for assertIsEmptyDir (0.19 sec)
-
subprojects/core/src/test/groovy/org/gradle/caching/internal/packaging/impl/DefaultTarPackerFileSystemSupportTest.groovy
then: targetOutputFile.parentFile.assertIsEmptyDir() } def "directory is created for output directory"() { def targetOutputDir = temporaryFolder.file("build/output") when: fileSystemSupport.ensureDirectoryForTree(DIRECTORY, targetOutputDir) then: targetOutputDir.assertIsEmptyDir() } def "cleans up leftover files in output directory"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 06 01:29:26 UTC 2020 - 3K bytes - Viewed (0) -
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) -
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) -
platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/ResolvedGeneratedJarsIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 22:36:52 UTC 2023 - 3K bytes - Viewed (0) -
platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/DefaultDeleterTest.groovy
when: deleter.ensureEmptyDirectory(target, true) then: target.assertIsEmptyDir() linked.assertIsEmptyDir() Files.readSymbolicLink(target.toPath()) == linked.toPath() content.assertDoesNotExist() } @Requires(UnitTestPreconditions.Symlinks)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 09 12:40:48 UTC 2024 - 14.2K bytes - Viewed (0) -
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) -
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) -
subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/HelpTaskIntegrationTest.groovy
For troubleshooting, visit https://help.gradle.org BUILD SUCCESSFUL""" and: // Directory is still empty testDirectory.assertIsEmptyDir() and: // Uses a directory under the user home for those things that happen to need a cache directory executer.gradleUserHomeDir.file(BuildScopeCacheDir.UNDEFINED_BUILD).assertIsDir()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 24 06:54:47 UTC 2023 - 14K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalInputsIntegrationTest.groovy
// force rebuild outputDir.file("modified.txt").text = "changed" inputDir.forceDeleteDir() run("copy") then: executedAndNotSkipped(":copy") outputDir.assertIsEmptyDir() } def "outputs are cleaned out on rebuild (output type: #type)"() { file("buildSrc").deleteDir() buildFile.text = """ abstract class MyCopy extends DefaultTask {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Dec 23 12:52:29 UTC 2022 - 27.8K bytes - Viewed (0) -
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)