Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for whenObjectRemoved (0.13 sec)

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

        def "can add action to execute only when object removed"() {
            containerAllowsElementRemoval()
    
            def action = Mock(Action)
    
            addToContainer(c)
    
            when:
            container.whenObjectRemoved(action)
    
            then:
            // Does not fire for existing elements
            0 * action._
    
            when:
            addToContainer(a)
            container.remove(c)
            container.remove(a)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationSpec.groovy

            def allArtifacts = master.allArtifacts
    
            def added = []
            allArtifacts.whenObjectAdded { added << it.name }
            def removed = []
            allArtifacts.whenObjectRemoved { removed << it.name }
    
            expect:
            allArtifacts.empty
    
            when:
            masterParent1.artifacts << artifact("p1-1")
            masterParent1Parent1.artifacts << artifact("p1p1-1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:30:13 UTC 2024
    - 64.8K bytes
    - Viewed (0)
  3. testing/architecture-test/src/changes/archunit-store/public-api-methods-return-allowed-types.txt

    Method <org.gradle.api.DomainObjectCollection.whenObjectRemoved(groovy.lang.Closure)> has arguments/return type groovy.lang.Closure that is not Gradle public API or primitive or built-in JDK classes or Kotlin classes in (DomainObjectCollection.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 12:21:31 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top