Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for assertDoesNotExist (0.25 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/ArtifactCacheUnusedVersionCleanupIntegrationTest.groovy

            given:
            gcFile.lastModified = daysAgo(2)
    
            when:
            succeeds("help")
    
            then:
            oldModulesDir.assertDoesNotExist()
            oldMetadataDir.assertDoesNotExist()
            currentModulesDir.assertExists()
            currentModulesMetadataDir.assertExists()
        }
    
        def "cleans up unused versions of caches on cleanup always"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 12:06:23 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultArtifactCacheLockingAccessCoordinatorTest.groovy

            then:
            file1.assertExists()
            file2.assertDoesNotExist()
            file3.assertDoesNotExist()
        }
    
        def "deletes old versions of cache dir"() {
            given:
            def oldCacheDir = cacheDir.getParentFile().createDir("modules-1")
    
            when:
            cacheLockingManager.close()
    
            then:
            oldCacheDir.assertDoesNotExist()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformCacheUnusedVersionCleanupIntegrationTest.groovy

            given:
            modulesGcFile.lastModified = daysAgo(2)
    
            when:
            succeeds("help")
    
            then:
            transforms3Dir.assertDoesNotExist()
            transforms4Dir.assertDoesNotExist()
            currentTransformsDir.assertExists()
            currentModulesDir.assertExists()
        }
    
        def "retains used versions of transforms-X when current modules requires cleanup"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 12:09:31 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. testing/distributions-integ-tests/src/integTest/groovy/org/gradle/BinDistributionIntegrationSpec.groovy

            given:
            TestFile contentsDir = unpackDistribution()
    
            expect:
            checkMinimalContents(contentsDir)
            contentsDir.file('src').assertDoesNotExist()
            contentsDir.file('samples').assertDoesNotExist()
            contentsDir.file('docs').assertDoesNotExist()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. testing/integ-test/src/integTest/groovy/org/gradle/integtests/AntProjectIntegrationTest.groovy

    task ant(dependsOn: target1)
    """
            TestFile target1File = testFile('build/target1.txt')
            TestFile target2File = testFile('build/target2.txt')
            target1File.assertDoesNotExist()
            target2File.assertDoesNotExist()
    
            inTestDirectory().withTasks('ant').run().assertTasksExecutedInOrder(':initialize', ':target2', ':target1', ':ant')
    
            target1File.assertExists()
            target2File.assertExists()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheLifecyclePluginIntegrationTest.groovy

            then:
            configurationCache.assertStateStored()
    
            and:
            buildDir.assertDoesNotExist()
    
            when:
            buildDir.mkdir()
            configurationCacheRun 'clean'
    
            then:
            configurationCache.assertStateLoaded()
    
            and:
            buildDir.assertDoesNotExist()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/CppApplicationInitIntegrationTest.groovy

            and:
            subprojectDir.file("src/main/cpp/${SAMPLE_APP_CLASS}").assertDoesNotExist()
            subprojectDir.file("src/main/headers/${SAMPLE_APP_HEADER}").assertDoesNotExist()
            subprojectDir.file("src/test/cpp/${SAMPLE_APP_TEST_CLASS}").assertDoesNotExist()
    
            when:
            run("build")
    
            then:
            executed(":app:test")
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/CppLibraryInitIntegrationTest.groovy

            dslFixtureFor(scriptDsl).assertGradleFilesGenerated()
    
            and:
            subprojectDir.file("src/main/cpp/${SAMPLE_LIB_CLASS}").assertDoesNotExist()
            subprojectDir.file("src/main/public/hello.h").assertDoesNotExist()
            subprojectDir.file("src/test/cpp/${SAMPLE_LIB_TEST_CLASS}").assertDoesNotExist()
    
            when:
            run("build")
    
            then:
            executed(":lib:test")
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. subprojects/core/src/testFixtures/groovy/org/gradle/cache/internal/GradleUserHomeCleanupFixture.groovy

                distDir.assertExists()
                customDistDir.assertExists()
            }
    
            void assertAllDirsDoNotExist() {
                cacheDir.assertDoesNotExist()
                distDir.assertDoesNotExist()
                customDistDir.assertDoesNotExist()
            }
        }
    
        static enum DistType {
            RELEASED() {
                @Override
                String version(String baseVersion) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 20:02:29 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/initialization/layout/ProjectCacheDirIntegrationTest.groovy

            when:
            succeeds("help")
    
            then:
            oldButRecentlyUsedCacheDir.assertExists()
            oldCacheDir.assertDoesNotExist()
            currentCacheDir.assertExists()
            getGcFile(currentCacheDir).assertExists()
        }
    
        def "do not create default path if project-cache-dir has been specified"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 16 23:00:16 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top