Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for missingValueMessage (0.96 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/project/taskfactory/AnnotationProcessingTaskFactoryTest.groovy

            then:
            def e = thrown WorkValidationException
            validateException(task, e,
                missingValueMessage { property('cCompiler').includeLink() },
                missingValueMessage { property('CFlags').includeLink() },
                missingValueMessage { property('dns').includeLink() },
                missingValueMessage { property('URL').includeLink() })
        }
    
        def propertyValidationJavaBeanSpecSingleChar() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:35 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  2. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskErrorExecutionIntegrationTest.groovy

            failureDescriptionContains("Some problems were found with the configuration of task ':custom' (type 'CustomTask').")
            failureDescriptionContains(missingValueMessage { type('CustomTask').property('srcFile') })
            failureDescriptionContains(missingValueMessage { type('CustomTask').property('destFile') })
    
            verifyAll(receivedProblem(0)) {
                fqid == 'validation:property-validation:value-not-set'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/PluginUnderTestMetadataIntegrationTest.groovy

            buildFile << """
                task $TASK_NAME(type: ${PluginUnderTestMetadata.class.getName()})
            """
    
            when:
            fails TASK_NAME
    
            then:
            failureDescriptionContains(missingValueMessage { type(PluginUnderTestMetadata.name).property('outputDirectory').includeLink() })
        }
    
        def "implementation-classpath entry in metadata is empty if there is no classpath"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/validation/ValidationMessageCheckerTest.groovy

     */
    class ValidationMessageCheckerTest extends Specification implements ValidationMessageChecker {
        @Delegate
        private VerificationFixture condition
    
        def "tests output of missingValueMessage"() {
            when:
            render(missingValueMessage {
                type('SomeType')
                property('someProperty')
            })
    
            then:
            outputEquals """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformValuesInjectionIntegrationTest.groovy

                fileInput: [
                    missingValueMessage { property('fileInput').includeLink().noIntro() },
                    incorrectUseOfInputAnnotation { property('fileInput').propertyType('File').includeLink().noIntro() },
                ],
                incrementalNonFileInput: [
                    missingValueMessage { property('incrementalNonFileInput').includeLink().noIntro() },
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 11:12:24 UTC 2023
    - 37.7K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

            """
            expect:
            fails "test"
            failure.assertHasDescription("A problem was found with the configuration of task ':test' (type 'DefaultTask').")
            failureDescriptionContains(missingValueMessage { property('input') })
        }
    
        def "optional null input properties registered via TaskInputs.property are allowed"() {
            buildFile << """
                task test {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy

            then:
            failureDescriptionContains missingValueMessage { type('Build_gradle.PrintString').property('string') }
            configurationCache.assertStateStored()
    
            when:
            configurationCacheFails "printString"
    
            then:
            failureDescriptionContains missingValueMessage { type('Build_gradle.PrintString').property('string') }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 28K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskInputFilePropertiesIntegrationTest.groovy

                   }
                }
    
                task foo(type: FooTask)
            """
    
            when:
            fails "foo"
    
            then:
            failureDescriptionContains(missingValueMessage { type('FooTask').property('bar') })
    
            and:
            verifyAll(receivedProblem) {
                fqid == 'validation:property-validation:value-not-set'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 13:04:02 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. platforms/jvm/language-jvm/src/integTest/groovy/org/gradle/api/tasks/bundling/JarIntegrationTest.groovy

            //   we assume it's mutable, even though the _return type_ is `Provider`.
            //   We will produce the correct message after https://github.com/gradle/gradle/issues/26141 is fixed.
            failureDescriptionContains(missingValueMessage { type('org.gradle.api.tasks.bundling.Jar').property('archiveFile') })
        }
    
        def "can use Provider values in manifest attribute"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyIntegrationTest.groovy

            fails("consumer")
    
            then:
            failure.assertHasDescription("A problem was found with the configuration of task ':consumer' (type 'ConsumerTask').")
            failureDescriptionContains(missingValueMessage { type('ConsumerTask').property('bean.inputFile') })
            failure.assertTasksExecuted(':producer', ':consumer')
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 24.7K bytes
    - Viewed (0)
Back to top