- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getMutatingMethods (0.24 sec)
-
subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractNamedDomainObjectContainerSpec.groovy
abstract NamedDomainObjectContainer<T> getContainer() @Override protected Map<String, Closure> getMutatingMethods() { return super.getMutatingMethods() + [ "create(String)": { container.create("b") }, "create(String, Action)": { container.create("b", Actions.doNothing()) },
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 13:46:07 UTC 2024 - 4K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractPolymorphicDomainObjectContainerSpec.groovy
abstract PolymorphicDomainObjectContainer<T> getContainer() @Override protected Map<String, Closure> getMutatingMethods() { return super.getMutatingMethods() + [ "create(String, Class)": { container.create("b", container.type) }, "create(String, Class, Action)": { container.create("b", container.type, Actions.doNothing()) },
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 04 22:26:51 UTC 2021 - 2.7K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractNamedDomainObjectCollectionSpec.groovy
return super.getQueryMethods() + [ "getByName(String)": { container.getByName("a") }, ] } @Override protected Map<String, Closure> getMutatingMethods() { return super.getMutatingMethods() + [ "getByName(String, Action)": { container.getByName("a", Actions.doNothing()) } ] } def "disallow mutating from named actions using #mutatingMethods.key"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 04 22:26:51 UTC 2021 - 5.8K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultNamedDomainObjectListTest.groovy
then: iter.hasNext() iter.nextIndex() == 1 iter.next() == "c" !iter.hasNext() } @Override protected Map<String, Closure> getMutatingMethods() { return super.getMutatingMethods() + [ "add(int, T)": { container.add(0, b) }, "addAll(int, Collection)": { container.addAll(0, [b]) }, "set(int, T)": { container.set(0, b) },
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 01 08:21:31 UTC 2023 - 13K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy
then: ex = thrown(Throwable) assertDoesNotAllowMethod(ex, methodUnderTest) where: mutatingMethods << getMutatingMethods() } protected Map<String, Closure> getMutatingMethods() { // TODO: // "addLater(Provider)" | { it.addLater(Providers.of(b)) } // "addAllLater(Provider)" | { it.addAllLater(Providers.collectionOf(b)) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 13:46:07 UTC 2024 - 52.4K bytes - Viewed (0)