Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for closeDoesNothingWhenNothingWritten (0.18 sec)

  1. platforms/core-runtime/io/src/test/groovy/org/gradle/internal/io/LinePerThreadBufferingOutputStreamTest.groovy

            0 * action._
    
            when:
            outstr.close()
    
            then:
            1 * action.text("text")
            1 * action.endOfStream(null)
            0 * action._
        }
    
        def closeDoesNothingWhenNothingWritten() {
            TextStream action = Mock()
            def outstr = new LinePerThreadBufferingOutputStream(action)
    
            when:
            outstr.close()
    
            then:
            1 * action.endOfStream(null)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:13 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top