Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 53 for assertDoesNotExist (0.51 sec)

  1. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/DefaultDeleterTest.groovy

            then:
            dir.assertDoesNotExist()
            didWork
        }
    
        def "deletes file"() {
            given:
            TestFile dir = tmpDir.getTestDirectory()
            TestFile file = dir.file("someFile")
            file.createFile()
    
            when:
            boolean didWork = deleter.deleteRecursively(file)
    
            then:
            file.assertDoesNotExist()
            didWork
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 12:40:48 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  2. 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)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/internal/cache/CacheConfigurationsContinuousIntegrationTest.groovy

            succeeds("foo")
            file('build/foo/foo').text == 'bar'
            getGcFile(currentCacheDir).assertDoesNotExist()
    
            when:
            file('foo').text = 'baz'
    
            then:
            buildTriggeredAndSucceeded()
            file('build/foo/foo').text == 'baz'
            getGcFile(currentCacheDir).assertDoesNotExist()
    
            when:
            sendEOT()
    
            then:
            waitForNotRunning()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. subprojects/core/src/test/groovy/org/gradle/initialization/layout/ProjectCacheDirTest.groovy

                operation.run(context)
            }
            6 * context.progress(_)
            ancientVersionWithoutMarkerFile.assertExists()
            oldestCacheDir.assertDoesNotExist()
            oldButRecentlyUsedCacheDir.assertExists()
            oldCacheDir.assertDoesNotExist()
            currentCacheDir.assertExists()
            newerCacheDir.assertExists()
        }
    
        @Override
        TestFile getCachesDir() {
            return cacheDir
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultPersistentDirectoryStoreTest.groovy

            expect:
            store.toString() == "<display> ($cacheDir)"
        }
    
        def "open creates directory if it does not exist"() {
            given:
            cacheDir.assertDoesNotExist()
    
            when:
            store.open()
    
            then:
            cacheDir.assertIsDir()
        }
    
        def "open does nothing when directory already exists"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:40:49 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileCompatibilityIntegrationTest.groovy

            withInstallations(jdk).fails(":compileJava")
    
            then:
            failure.assertHasErrorOutput("Parent.java:3: error: sealed classes are not supported in -source 11")
            javaClassFile("Parent.class").assertDoesNotExist()
        }
    
        def "source compatibility matching the compiler version allows accessing Java language features"() {
            def jdk = AvailableJavaHomes.getJdk(JavaVersion.VERSION_17)
    
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top