Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 322 for realizes (0.12 sec)

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

            registry.realize("parent") // TODO - should not need this: parent mutations should be applied before mutating element
    
            expect:
            registry.realize("parent.bar", Bean).value == "prefix: bar"
            registry.realize("parent.foo", String) == "ignore me"
            registry.realize("parent.bar.child1", Bean).value == "prefix: baz"
            registry.realize("parent.bar.child2", String) == "ignore me too"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 56K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/projection/AbstractCollectionModelProjectionTest.groovy

            }
    
            then:
            def list = registry.realize(collectionPath, collectionType)
            list == checkable(['bar'])
        }
    
        def "can remove all elements"() {
            when:
            mutate {
                add 'foo'
                add 'bar'
                clear()
            }
    
            then:
            def list = registry.realize(collectionPath, collectionType)
            list == checkable([])
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/test/groovy/org/gradle/language/internal/DefaultBinaryCollectionTest.groovy

        }
    
        def "cannot add elements after collection is realized"() {
            given:
            container.add(Stub(SwiftBinary))
            container.realizeNow()
    
            when:
            container.add(Stub(SwiftBinary))
    
            then:
            def e = thrown(IllegalStateException)
            e.message == 'Cannot add an element to this collection as it has already been realized.'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/projection/ListModelProjectionTest.groovy

                remove(1)
            }
    
            then:
            def list = registry.realize(collectionPath, collectionType)
            list == checkable(['foo', 'baz'])
        }
    
        def "can add using index"() {
            when:
            mutate {
                add 'foo'
                add(0, 'bar')
            }
    
            then:
            def list = registry.realize(collectionPath, collectionType)
            list == ['bar', 'foo']
    
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/ManagedNamedTest.groovy

            registry.registerWithInitializer("foo", NamedThingInterface, nodeInitializerRegistry)
    
            then:
            registry.realize("foo", NamedThingInterface).name == "foo"
    
            when:
            registry.registerWithInitializer("bar", NamedThingInterface, nodeInitializerRegistry)
    
            then:
            registry.realize("bar", NamedThingInterface).name == "bar"
        }
    
    
        @Managed
        static abstract class NonNamedThing {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/projection/ModelSetModelProjectionTest.groovy

            then:
            def set = registry.realize(collectionPath, collectionType)
            def e1 = set.find { it.name == '1' }
            def e2 = set.find { it.name == '1' }
            e1.is(e2)
        }
    
        def "can query set size"() {
            when:
            mutate {
                create { name = '1' }
                create { name = '2' }
            }
    
            then:
            !registry.realize(collectionPath, collectionType).isEmpty()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ScalarTypesInManagedModelTest.groovy

                    void setUnmanagedReadWriteProperty($type type)
                }
    
            """
    
            then:
            realize(clazz)
    
            where:
            type << ['List<Date>', 'Set<Date>']
    
        }
    
        private void failWhenRealized(Class type, String expected) {
            try {
                realize(type)
                throw new AssertionError("node realisation of type ${type.name} should have failed with a cause of:\n$expected\n")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-groovy/src/test/groovy/org/gradle/model/dsl/internal/NonTransformedModelDslBackingTest.groovy

            given:
            register("foo", [])
    
            when:
            modelDsl.configure {
                foo {
                    add 1
                }
            }
    
            then:
            registry.realize("foo", List) == [1]
        }
    
        @Managed
        interface Thing {
            void setName(String name)
    
            String getName()
        }
    
        @Managed
        interface Foo {
            ModelSet<Thing> getBar()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractLoggingHooksFunctionalTest.groovy

                    println "finished"
                    assert output.toString().readLines() == [":log", "output"]
                    assert error.toString().readLines() == ["error"]
                    assert before.toString().readLines() == [":log", "output", "error"]
                    assert after.toString().readLines() == []
                }
            """
    
            expect:
            succeeds("log", "other")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/MutationFailureFromProviderConfigureRealizedDomainObjectContainerIntegrationTest.groovy

        def "cannot execute mutation method #mutationMethod.key from Provider.configure (realized)"() {
            buildFile << """
                realized.configure {
                    ${mutationMethod.value}
                }
                toBeRealized.get()
            """
    
            expect:
            fails "help"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 05 09:53:33 UTC 2021
    - 1.7K bytes
    - Viewed (0)
Back to top