Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for assertThatCause (0.24 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. subprojects/core/src/integTest/groovy/org/gradle/groovy/scripts/StatementLabelsIntegrationTest.groovy

            failure.assertHasLineNumber(2)
            failure.assertHasDescription("Could not compile build file '${buildFile}'.")
            failure.assertThatCause(CoreMatchers.containsString("build file '${buildFile}': 2: Statement labels may not be used in build scripts."))
            failure.assertThatCause(CoreMatchers.containsString("build file '${buildFile}': 4: Statement labels may not be used in build scripts."))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 21 07:18:30 UTC 2020
    - 3.1K bytes
    - Viewed (0)
  3. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/codenarc/CodeNarcPluginVersionIntegrationTest.groovy

            expect:
            fails("check")
            failure.assertThatCause(both(startsWith("CodeNarc rule violations were found. See the report at:")).and(endsWith("xml")))
        }
    
        def "analyze bad code"() {
            badCode()
    
            expect:
            fails("check")
            failure.assertHasDescription("Execution failed for task ':codenarcTest'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/internal/transform/ModelDslRuleDetectionIntegrationSpec.groovy

                    }
                }
            """
    
            then:
            fails "tasks"
            failure.assertHasLineNumber 3
            failure.assertHasFileName("Build file '${buildFile}'")
            failure.assertThatCause(containsString(RulesVisitor.INVALID_STATEMENT))
    
            where:
            pathCode << [
                    '"a" + "a"',
                    'foo.bar().baz',
                    'foo["bar"]',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. 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)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/http/SocksProxyResolveIntegrationTest.groovy

            proxyServer.configureProxy(executer)
            when:
            fails('listJars')
            then:
            failure.assertHasCause("Could not resolve log4j:log4j:1.2.17.")
            failure.assertThatCause(CoreMatchers.containsString("Can't connect to SOCKS proxy:Connection refused"))
    
            when:
            def recordingServer = new TestRecordingSocksServer()
            proxyServer.start(recordingServer)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  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