4
* Verifies that DefaultGroovyMethods.transformLine(Reader, Writer, Closure)
5
* actually writes its output.
8
class Groovy1081_Bug extends GroovyTestCase {
11
def reader = new StringReader('abc')
12
def writer = new StringWriter()
14
reader.transformLine(writer) { it }
16
// Implementation was creating a BufferedWriter, but not flushing it
17
assertTrue(writer.toString().startsWith('abc'))
4
* Verifies that DefaultGroovyMethods.transformLine(Reader, Writer, Closure)
5
* actually writes its output.
8
class Groovy1081_Bug extends GroovyTestCase {
11
def reader = new StringReader('abc')
12
def writer = new StringWriter()
14
reader.transformLine(writer) { it }
16
// Implementation was creating a BufferedWriter, but not flushing it
17
assertTrue(writer.toString().startsWith('abc'))