Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 111 for assertDoesNotExist (0.4 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/ArtifactViewArtifactSelectionIntegrationTest.groovy

                        }
                    }.files)
                    into(buildDir)
                }
            """
            when:
            succeeds("resolve")
            then:
            file("build/alternative").assertDoesNotExist()
            file("build/output").assertExists()
        }
    
        def "can depend on two configurations from the same project"() {
            file("producer/build.gradle") << """
                configurations {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedCustomTaskExecutionIntegrationTest.groovy

            file("build/output/missing").assertDoesNotExist()
    
            when:
            cleanBuildDir()
            withBuildCache().run "customTask"
            then:
            skipped ":customTask"
            file("build/output.txt").text == "data"
            file("build/output").assertIsDir()
            file("build/output/missing").assertDoesNotExist()
    
            where:
            type << ["file", "dir"]
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top