
package org.apache.commons.io.output;

import org.junit.Test;

/**
 * Really not a lot to do here, but checking that no 
 * Exceptions are thrown. 
 *
 * @version $Id: NullWriterTest.java 1718944 2015-12-09 19:50:30Z krosenvold $
 */
public class NullWriterTest {

    @Test
    public void testNull() {
        final char[] chars = new char[] {'A', 'B', 'C'};
        final NullWriter writer = new NullWriter();
        writer.write(1);
        writer.write(chars);
        writer.write(chars, 1, 1);
        writer.write("some string");
        writer.write("some string", 2, 2);
        writer.flush();
        writer.close();
    }

}
