- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for supplierWithValues (0.3 sec)
-
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy
value.fixedValue == toImmutable(["a", "b", "c"]) } def "has no producer and fixed execution time value when element provider added"() { given: property.add(supplierWithValues("a")) property.add(supplierWithValues("b")) expect: assertHasNoProducer(property) def value = property.calculateExecutionTimeValue() value.hasFixedValue()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 49.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultPropertyTest.groovy
and: !property.present } def "can set value to a provider whose type is compatible"() { def supplier = supplierWithValues(1, 2, 3) given: def property = propertyWithDefaultValue(Number) when: property.set(supplier) then: property.get() == 1
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 18 17:09:50 UTC 2024 - 11.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy
value.getFixedValue() == [a: '1', b: '2'] } def "has no producer and fixed execution time value when element provider added"() { given: property.put('a', supplierWithValues('1')) property.put('b', supplierWithValues('2')) expect: assertHasNoProducer(property) def value = property.calculateExecutionTimeValue() value.hasFixedValue()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 58.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy
def b = propertyWithNoValue() def c = propertyWithNoValue() def property = propertyWithNoValue() property.set(b.flatMap { supplierWithValues(someOtherValue2()) }) property.disallowUnsafeRead() b.set(c.flatMap { supplierWithValues(someOtherValue()) }) b.attachOwner(owner(), displayName("<b>")) c.set(someValue()) c.attachOwner(owner(), displayName("<c>"))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 87.8K bytes - Viewed (0)