Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testEmptyInput (0.57 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/LineFilterTest.groovy

    import org.gradle.internal.SystemProperties
    import org.junit.Test
    
    import static org.hamcrest.CoreMatchers.equalTo
    import static org.hamcrest.MatcherAssert.assertThat
    
    class LineFilterTest {
        @Test void testEmptyInput() {
            def input = new StringReader("")
            def lineCount = 1
            def filter = new LineFilter(input, { "${lineCount++} - $it" as String })
    
            assertThat(filter.text, equalTo(""))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 19 19:02:02 UTC 2021
    - 3.3K bytes
    - Viewed (0)
Back to top