- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for assertThatCause (0.24 sec)
-
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) -
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) -
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) -
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) -
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) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionFailure.java
} return this; } @Override public ExecutionFailure assertHasCause(String description) { assertThatCause(startsWith(description)); return this; } @Override public ExecutionFailure assertThatCause(Matcher<? super String> matcher) { Set<String> seen = new LinkedHashSet<>(); for (Problem problem : problems) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 09:21:25 UTC 2024 - 12.5K bytes - Viewed (0) -
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) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ArchiveIntegrationTest.groovy
} '''.stripIndent() when: def failure = runAndFail('copy') then: failure.assertHasDescription("Execution failed for task ':copy'.") failure.assertThatCause(CoreMatchers.startsWith("Cannot expand ZIP")) where: scenario | content
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 30.2K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy
} } protected void failureHasCause(String cause) { failure.assertHasCause(cause) } protected void failureHasCause(Pattern pattern) { failure.assertThatCause(matchesRegexp(pattern)) } protected void failureDescriptionStartsWith(String description) { failure.assertThatDescription(containsNormalizedString(description)) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:07:53 UTC 2024 - 32.9K bytes - Viewed (0) -
platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/integtests/ApplicationIntegrationSpec.groovy
file('build.gradle') << """ installDist.destinationDir = buildDir """ when: runAndFail "installDist" then: result.assertThatCause(startsWith("The specified installation directory '${file('build')}' is neither empty nor does it contain an installation")) } def "startScripts respect OS dependent line separators"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 22:15:44 UTC 2024 - 15.5K bytes - Viewed (0)