Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for connectElementToInput (0.18 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/ScopedRuleTest.groovy

            then:
            registry.get("values.mutable", MutableValue).value == "foo"
        }
    
        static class ByTypeBindingSubjectRule extends RuleSource {
            @Mutate
            void connectElementToInput(MutableValue element, Integer input) {
                element.value = input
            }
        }
    
        def "by-type subject bindings are scoped to the scope of an inner rule"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/NodeBackedModelMapSpec.groovy

    - Rule source classes must directly extend org.gradle.model.RuleSource''')
        }
    
        static class ElementRules extends RuleSource {
            @Mutate
            void connectElementToInput(Bean element, String input) {
                element.value = input
            }
        }
    
        def "inputs of a rule from an inner source are not realised if the rule is not required"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 38.3K bytes
    - Viewed (0)
Back to top