Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for attachProducer (0.21 sec)

  1. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy

            def owner2 = owner()
            owner2.modelIdentityDisplayName >> displayName("<owner 2>")
    
            given:
            def property = propertyWithNoValue()
            property.attachProducer(owner1)
    
            when:
            property.attachProducer(owner2)
    
            then:
            def e = thrown(IllegalStateException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 87.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

            property.addAll(supplierWithProducer(task2))
            property.add(supplierWithProducer(task3))
    
            expect:
            assertHasProducer(property, task1, task2, task3)
    
            property.attachProducer(owner(producer))
            assertHasProducer(property, producer)
        }
    
        def "cannot set to empty list after value finalized"() {
            given:
            def property = property()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

            property.putAll(supplierWithProducer(task2))
            property.put('a', supplierWithProducer(task3, '1'))
    
            expect:
            assertHasProducer(property, task1, task2, task3)
    
            property.attachProducer(owner(producer))
            assertHasProducer(property, producer)
        }
    
        def "cannot set to empty map after value finalized"() {
            given:
            property.set(someValue())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 58.7K bytes
    - Viewed (0)
Back to top