Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for missingValueMessage (0.64 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. 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)
  4. 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)
  5. 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)
  6. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/internal/reflect/validation/ValidationMessageChecker.groovy

            messageIndent = indent
        }
    
    
        String learnAt(String id, String section) {
            documentationRegistry.getDocumentationRecommendationFor("information", id, section)
        }
    
        String missingValueMessage(@DelegatesTo(value = SimpleMessage, strategy = Closure.DELEGATE_FIRST) Closure<?> spec = {}) {
            def config = display(SimpleMessage, 'value_not_set', spec)
            config.description("doesn't have a configured value")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 11:49:03 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/NestedInputIntegrationTest.groovy

            expect:
            fails "myTask"
            failure.assertHasDescription("A problem was found with the configuration of task ':myTask' (type 'TaskWithAbsentNestedInput').")
            failureDescriptionContains(missingValueMessage { type('TaskWithAbsentNestedInput').property('nested') })
    
            where:
            description               | property
            "for plain Java property" | "NestedBean nested"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top