Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 113 for assertDoesNotExist (0.29 sec)

  1. 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)
  2. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/AssignImmutableWorkspaceStepConcurrencyTest.groovy

            when:
            thread1.join()
            thread2.join()
    
            then:
            exceptions.isEmpty()
            immutableWorkspace.assertIsDir()
            temporaryWorkspace1.assertDoesNotExist()
            temporaryWorkspace2.assertDoesNotExist()
            immutableWorkspace.file("work.txt").text == "work1"
            0 * _
        }
    
        // We need custom mock classes because Spock does not support multi-threaded mocks
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:46:25 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIncrementalCompileIntegrationTest.groovy

            executable.exec().out == "hello"
            objectFileFor(newSource).assertExists()
    
            and: "Previous object files are removed"
            objectFileFor(sourceFile).assertDoesNotExist()
            otherSourceFiles.each {
                objectFileFor(it).assertDoesNotExist()
            }
        }
    
        @ToBeFixedForConfigurationCache
        def "incremental compile is not effected by other compile tasks"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  4. build-logic/packaging/src/test/kotlin/gradlebuild/instrumentation/InstrumentationMetadataPluginTest.kt

            val upgradedProperties = File(projectRoot, "distribution/build/instrumentation/upgraded-properties.json")
            instrumentedSuperTypes.assertDoesNotExist()
            upgradedProperties.assertDoesNotExist()
        }
    
        @Test
        fun `should not fail if metadata is not changed`() {
            // Given
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:55:53 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  5. 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)
  6. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioSingleProjectIntegrationTest.groovy

                    linkage = [Linkage.STATIC, Linkage.SHARED]
                }
            """
    
            and:
            succeeds "visualStudio"
    
            when:
            debugBinaryLib.assertDoesNotExist()
            debugBinaryDll.assertDoesNotExist()
            def resultDebug = msbuild
                .withSolution(solutionFile("lib.sln"))
                .withConfiguration('Debug')
                .succeeds()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperGenerationIntegrationTest.groovy

            assert throwable.message.contains("Test of distribution url ${url} failed. Please check the values set with --gradle-distribution-url and --gradle-version.")
            file("gradle/wrapper/gradle-wrapper.properties").assertDoesNotExist()
        }
    
        def "wrapper task succeeds if http distribution url from command-line is valid"() {
            given:
            def path = "/distributions/8.0-rc-5"
            def file = file(path) << "some content"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildCleanupIntegrationTest.groovy

                file("buildB/build/classes/java/main/stale")]
            staleFiles*.touch()
    
            when:
            execute(buildA, 'build')
            then:
            staleFiles*.assertDoesNotExist()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 06 13:06:26 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  9. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioSoftwareModelIncrementalIntegrationTest.groovy

            then:
            executedAndNotSkipped ":appVisualStudioSolution"
            executedAndNotSkipped getComponentTasks("main")
    
            when:
            copyFile(file("src/main/cpp/main.cpp"), file("src/main/cpp/foo.cpp").assertDoesNotExist())
            run "visualStudio"
    
            then:
            skipped ":appVisualStudioSolution"
            executedAndNotSkipped getComponentTasks("main")
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  10. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/SwiftLibraryInitIntegrationTest.groovy

            dslFixtureFor(scriptDsl).assertGradleFilesGenerated()
    
            and:
            subprojectDir.file("src/main/swift/${SAMPLE_LIBRARY_CLASS}").assertDoesNotExist()
            subprojectDir.file("src/test/swift/${SAMPLE_LIBRARY_TEST_CLASS}").assertDoesNotExist()
            subprojectDir.file("src/test/swift/${LINUX_MAIN_DOT_SWIFT}").text.contains("HolaTests.allTests")
    
            when:
            run("build")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top