Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 181 for realizes (0.29 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/native/testing-native/src/test/groovy/org/gradle/nativeplatform/test/plugins/NativeBinariesTestPluginTest.groovy

            when:
            dsl {
                apply plugin: NativeBinariesTestPlugin
                model {
                    library(StaticLibraryBinarySpec)
                }
            }
    
            def library = realize("library")
    
            dsl {
                model {
                    binary(NativeTestSuiteBinarySpec) {
                        testedBinary = library
                        tasks.create("run", RunTestExecutable) {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/TaskContainerIntegrationTest.groovy

                tasks.register("bar", Delete)
            """
    
            when:
            succeeds "help"
    
            then:
            // help task is realized and configured
            outputContains("configured :help")
    
            // are "built-in" tasks realized and configured?
            if (realizesBuiltInTasks) {
                outputContains("configured :tasks")
                outputContains("configured :projects")
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 07:46:00 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/tasks/TaskContainerInternal.java

        DynamicObject getTasksAsDynamicObject();
    
        /**
         * Force the task graph to come into existence.
         */
        void realize();
    
        /**
         * Performs work to discover more tasks.
         *
         * This method differs from {@link #realize} in that it does not realize the whole subtree.
         */
        void discoverTasks();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 08 09:35:04 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top