Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for closesACloseableElement (0.16 sec)

  1. platforms/core-runtime/concurrent/src/test/groovy/org/gradle/internal/concurrent/CompositeStoppableTest.groovy

            then:
            1 * a.stop() >> { throw failure1 }
            1 * b.stop() >> { throw failure2 }
            def e = thrown(RuntimeException)
            e == failure1
        }
    
        def closesACloseableElement() {
            Closeable a = Mock()
            Stoppable b = Mock()
    
            stoppable.add(a)
            stoppable.add(b)
    
            when:
            stoppable.stop()
    
            then:
            1 * a.close()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top