|
Groovy example source code file (NullWriterTest.groovy)
The Groovy NullWriterTest.groovy source code
package org.codehaus.groovy.control.io
class NullWriterTest extends GroovyTestCase {
void testProperties() {
assert NullWriter.DEFAULT instanceof NullWriter
}
void testWriterMethodsForCoverage() {
def writer = NullWriter.DEFAULT
writer.close()
writer.flush()
writer.write((char[])null, 0, 0)
}
}
Other Groovy examples (source code examples)Here is a short list of links related to this Groovy NullWriterTest.groovy source code file: |
Other websites by Alvin Alexander:
Life/living in Alaska (OneMansAlaska.com)
How I Sold My Business (HowISoldMyBusiness.com)
Copyright 1998-2011 Alvin Alexander, devdaily.com
All Rights Reserved.