Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 273 for testcontainer (0.24 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/TestContainer.java

     * limitations under the License.
     */
    package org.gradle.api.internal;
    
    import org.gradle.internal.reflect.Instantiator;
    
    public class TestContainer extends AbstractNamedDomainObjectContainer<TestObject> {
    
        public TestContainer(org.gradle.internal.reflect.Instantiator instantiator) {
            super(TestObject.class, instantiator, new DynamicPropertyNamer(), CollectionCallbackActionDecorator.NOOP);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/NamedDomainObjectContainerIntegrationTest.groovy

        }
    
        def "chained lookup of testContainer.withType.matching"() {
            buildFile << """
                testContainer.withType(testContainer.type).matching({ it.name.endsWith("foo") }).all { element ->
                    assert element.name in ['foo', 'barfoo']
                }
    
                testContainer.register("foo")
                testContainer.register("bar")
                testContainer.register("foobar")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/AbstractQueryDomainObjectContainerIntegrationTest.groovy

        }
    
        def "can execute query method #queryMethod.key from withType.configureEach"() {
            buildFile << """
                testContainer.withType(testContainer.type).configureEach {
                    ${queryMethod.value}
                }
                toBeRealized.get()
            """
    
            expect:
            succeeds "help"
    
            where:
            queryMethod << getQueryMethods()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 05 09:53:33 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/AbstractDomainObjectContainerIntegrationTest.groovy

            [
                "${containerType}#getByName(String)":    "testContainer.getByName('unrealized')",
                "${containerType}#named(String)":        "testContainer.named('unrealized')",
                "${containerType}#named(String, Class)": "testContainer.named('unrealized', testContainer.type)",
                "${containerType}#findAll(Closure)":     "testContainer.findAll { it.name == 'unrealized' }",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 16 08:04:01 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/AbstractMutatingDomainObjectContainerInHookIntegrationTest.groovy

                    testContainer.create("afterEvaluate")
                }
    
                project(':nested').beforeEvaluate {
                    testContainer.create("beforeEvaluate")
                }
    
                task verify {
                    doLast {
                        assert testContainer.findByName("afterEvaluate") != null
                        assert testContainer.findByName("beforeEvaluate") != null
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/NamedDomainObjectCollectionSchemaIntegrationTest.groovy

                def factory = { name -> new Impl(name) }
                def testContainer = project.container(PubType, factory)
    
                testContainer.create("foo")
                testContainer.register("bar")
                testContainer.register("baz").get()
    
                task assertSchema {
                    doLast {
                        assertSchemaIs(testContainer,
                            "foo": "PubType",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/QueryAndMutateFromWithTypeAllDomainObjectContainerIntegrationTest.groovy

        def "can execute query and mutating methods #method.key from withType.all"() {
            buildFile << """
                testContainer.withType(testContainer.type).all {
                    if (it.name == "realized") {
                        ${method.value}
                    }
                }
            """
    
            expect:
            succeeds "help"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 05 09:53:33 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/MutationFailureFromMatchingConfigureEachDomainObjectContainerIntegrationTest.groovy

        def "cannot execute mutation method #mutationMethod.key from matching.configureEach"() {
            buildFile << """
                testContainer.matching({ it in testContainer.type }).configureEach {
                    ${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)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/QueryAndMutateFromWithTypeGetByNameDomainObjectContainerIntegrationTest.groovy

        def "can execute query and mutation methods #method.key from withType.getByName"() {
            buildFile << """
                testContainer.withType(testContainer.type).getByName("realized") {
                    ${method.value}
                }
            """
    
            expect:
            succeeds "help"
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 05 09:53:33 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/MutationFailureFromWithTypeConfigureEachDomainObjectContainerIntegrationTest.groovy

        def "cannot execute mutation method #mutationMethod.key from withType.configureEach"() {
            buildFile << """
                testContainer.withType(testContainer.type).configureEach {
                    ${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