Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for assertThatCause (0.17 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/DependencyResolutionFailure.groovy

            failure.assertThatCause(matchesRegexp("Could not resolve all (dependencies|artifacts|files) for configuration '${Pattern.quote(configuration)}'."))
            this
        }
    
        DependencyResolutionFailure assertFailedDependencyRequiredBy(String dependency) {
            failure.assertThatCause(matchesRegexp("(?ms).*Required by:\\s+$dependency.*"))
            this
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/PluginManagementDslSpec.groovy

            given:
            buildScript """
                pluginManagement {}
            """
    
            when:
            fails 'help'
    
            then:
            failure.assertHasLineNumber(2)
            failure.assertThatCause(containsString("Only Settings scripts can contain a pluginManagement {} block."))
            includesLinkToUserguide()
    
            and:
            verifyAll(receivedProblem) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 15:16:47 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-jvm-test-suite/src/integTest/groovy/org/gradle/testing/testsuites/TestSuitesMultiTargetIntegrationTest.groovy

            """
    
            when:
            withInstallations(Jvm.current(), otherJvm).fails("testAggregateTestReport")
    
            then:
            failure.assertThatCause(containsNormalizedString("There are several available matching variants of project :"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:55:38 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

        }
    
        def "analyze bad code"() {
            badCode()
    
            expect:
            fails("check")
            failure.assertHasDescription("Execution failed for task ':pmdTest'.")
            failure.assertThatCause(containsString("2 PMD rule violations were found. See the report at:"))
            failure.assertHasResolutions(SCAN)
            file("build/reports/pmd/main.xml").assertContents(not(containsClass("org.gradle.Class1")))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top