Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 72 for assertThatCause (0.56 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryNamedTypeIntegrationTest.groovy

            then:
            failure.assertHasCause("Cannot set readonly property: name for class: Thing\$Impl")
    
            when:
            fails("changeDynProp")
    
            then:
            failure.assertThatCause(allOf(
                startsWith("No signature of method: Thing\$Impl"),
                containsString(".setProperty() is applicable for argument types: (String, String) values: [name, 123]")
            ))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 05:39:53 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/CancellationSpec.groovy

                def failure = OutputScrapingExecutionFailure.from(stdout.toString(), stderr.toString())
                failure.assertHasDescription("Execution failed for task '${taskPath}'.")
                failure.assertThatCause(cancelledMessageMatcher(taskPath))
            } else {
                // Verify that there is some logging output that explains that the build was cancelled, for versions that do not include any context in the message
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformValuesInjectionIntegrationTest.groovy

            failure.assertHasCause("Failed to transform b.jar (project :b) to match attributes {artifactType=jar, color=green}.")
            failure.assertThatCause(matchesRegexp('Could not isolate parameters MakeGreen\\$Parameters_Decorated@.* of artifact transform MakeGreen'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 11:12:24 UTC 2023
    - 37.7K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InProcessGradleExecuter.java

            @Override
            public ExecutionFailure assertHasCause(String description) {
                assertThatCause(startsWith(description));
                return this;
            }
    
            @Override
            public ExecutionFailure assertThatCause(Matcher<? super String> matcher) {
                outputFailure.assertThatCause(matcher);
                Set<String> seen = new LinkedHashSet<>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  5. platforms/jvm/java-platform/src/integTest/groovy/org/gradle/integtests/resolve/platforms/JavaPlatformResolveIntegrationTest.groovy

                    api "org:foo"
                }
            """
            checkConfiguration("compileClasspath")
    
            when:
            fails ":checkDeps"
    
            then:
            failure.assertThatCause(Matchers.startsWith("No matching variant of project :platform was found."))
        }
    
        def "can enforce a local platform dependency"() {
            def module1 = mavenHttpRepo.module("org", "foo", "1.1").publish()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/ComponentAttributesDynamicVersionIntegrationTest.groovy

                fails ':checkDeps'
                failure.assertHasCause("No matching variant of org.test:module:1.0 was found. The consumer was configured to find attribute 'quality' with value 'canary' but:")
                failure.assertThatCause(containsNormalizedString("Incompatible because this component declares attribute 'quality' with value 'qa' and the consumer needed attribute 'quality' with value '$requested'"))
            }
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CredentialsProviderIntegrationTest.groovy

            for (int i = 0; i < 10; i++) {
                args '--parallel', '--continue'
                fails 'executionCredentials'
    
                failure.assertNotOutput("ConcurrentModificationException")
                failure.assertThatCause(CoreMatchers.equalTo(errorMessage))
                failure.assertHasFailures(4)
            }
    
            where:
            credentialsType         | errorMessage
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/BinaryConfigurationIntegrationTest.groovy

            helloWorldApp.writeSources(file("b/src/main"))
    
            file("b/src/main/cpp/broken.cpp") << """
        A broken C++ file
    """
    
            expect:
            fails "mainExecutable"
            failure.assertThatCause(CoreMatchers.not(CoreMatchers.containsString("Could not stop")))
        }
    
        @ToBeFixedForConfigurationCache
        def "can configure output file for binaries"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftLibraryIntegrationTest.groovy

            expect:
            fails "assemble"
            failure.assertHasDescription("Execution failed for task ':compileDebugSwift'.")
            failure.assertHasCause("A build operation failed.")
            failure.assertThatCause(containsText("Swift compiler failed while compiling swift file(s)"))
        }
    
        def "can build debug and release variants of library"() {
            given:
            def lib = new SwiftLib()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 15:17:55 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/testFixtures/groovy/org/gradle/language/swift/AbstractSwiftComponentIntegrationTest.groovy

            expect:
            fails "verifyBinariesSwiftVersion"
            failure.assertHasDescription("A problem occurred configuring root project 'swift-project'.")
            failure.assertThatCause(CoreMatchers.containsString("property 'sourceCompatibility' is final and cannot be changed any further."))
        }
    
        @RequiresInstalledToolChain(ToolChainRequirement.SWIFTC_4)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
Back to top