Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 76 for assertThatCause (0.22 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/BuildScriptErrorIntegrationTest.groovy

                    toolchains { // should be toolchain
                    }
                }
            """
    
            expect:
            fails()
            failure.assertThatCause(containsNormalizedString("Could not find method toolchains() for arguments"))
            failure.assertThatCause(containsNormalizedString(" on extension 'java' of type org.gradle.api.plugins.internal.DefaultJavaPluginExtension."))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 17:01:37 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ErrorsOnStdoutScrapingExecutionFailure.java

        public ExecutionFailure assertHasCause(String description) {
            delegate.assertHasCause(description);
            return this;
        }
    
        @Override
        public ExecutionFailure assertThatCause(Matcher<? super String> matcher) {
            delegate.assertThatCause(matcher);
            return this;
        }
    
        @Override
        public ExecutionFailure assertHasDescription(String context) {
            delegate.assertHasDescription(context);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:21:25 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/internal/transform/ModelDslRuleInputDetectionIntegrationSpec.groovy

            """
    
            then:
            fails "tasks"
            failure.assertHasLineNumber(15)
            failure.assertThatCause(containsString("Invalid model path given as rule input."))
            failure.assertThatCause(containsString("Model path 'foo. bar' is invalid due to invalid name component."))
            failure.assertThatCause(containsString("Model element name ' bar' has illegal first character ' ' (names must start with an ASCII letter or underscore)."))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecWithLongCommandLineIntegrationTest.groovy

                run.args '${veryLongCommandLineArgs.join("','")}'
            """
    
            when:
            fails taskName
    
            then:
            failure.assertThatCause(containsText("could not be started because the command line exceed operating system limits."))
    
            where:
            method                    | taskName
            'JavaExec task'           | 'run'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/http/HttpAuthenticationDependencyResolutionIntegrationTest.groovy

            then:
            fails 'checkDeps'
    
            and:
            failedResolve.assertFailurePresent(failure)
            failure
                .assertResolutionFailure(':compile')
                .assertThatCause(CoreMatchers.containsString('Received status code 401 from server: Unauthorized'))
    
            where:
            authScheme | credsName | creds
            BASIC      | 'missing' | ''
            DIGEST     | 'missing' | ''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/ComponentAttributesRulesIntegrationTest.groovy

                failure.assertThatCause(containsNormalizedString("The only attribute distinguishing these variants is 'org.gradle.usage'. Add this attribute to the consumer's configuration to resolve the ambiguity:"))
                failure.assertThatCause(containsNormalizedString("- Value: 'unknownApiVariant' selects variant: 'api'"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:10:53 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/plugin/ScriptPluginClassLoadingIntegrationTest.groovy

                someMethod()
            """
    
            when:
            fails "help"
    
            then:
            failure.assertHasFileName("Script '${file("script2.gradle").absolutePath}'")
            failure.assertThatCause(containsText("Could not find method someMethod()"))
        }
    
        def "methods defined in settings script are not inherited by scripts"() {
            given:
            settingsFile << """
                def someMethod() {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:34 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-provider/src/integTest/groovy/org/gradle/internal/declarativedsl/settings/SoftwareTypeDeclarationIntegrationTest.groovy

                    nonPublic = "foo"
                }
            """
            fails(":printTestSoftwareTypeExtensionImplConfiguration")
    
            then:
            failure.assertThatCause(Matchers.containsString("Failed to interpret the declarative DSL file"))
            failure.assertThatCause(Matchers.containsString("unresolved reference 'nonPublic'"))
        }
    
        def 'can declare and configure a custom software type from a parent class'() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 19 16:59:01 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/NativeBinariesIntegrationTest.groovy

            failure.assertHasCause("A build operation failed.")
            def exeName = executable("build/binaries/mainExecutable/main").file.name
            failure.assertThatCause(containsText("Linker failed while linking ${exeName}"))
        }
    
        @ToBeFixedForConfigurationCache
        def "build fails when link library fails"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  10. platforms/software/platform-base/src/integTest/groovy/org/gradle/api/plugins/BasePluginIntegrationTest.groovy

            when:
            fails "clean"
    
            then:
            failure.assertThatCause(containsString("Unable to delete directory '${file('build')}'"))
            failure.assertThatCause(containsString("Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory."))
            failure.assertThatCause(containsString(file("build/newFile").absolutePath))
    
            cleanup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top