/*
*/
-package jp.sourceforge.mikutoga.binio;
+package jp.sfjp.mikutoga.bin.export;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
}
/**
+ * Test of constructor, of class TextExporter.
+ * @throws Exception
+ */
+ @Test
+ public void testCons() throws Exception {
+ System.out.println("constructor");
+
+ TextExporter exp;
+
+ try{
+ exp = new TextExporter((Charset)null);
+ fail();
+ }catch(NullPointerException e){
+ // GOOD
+ }
+
+ try{
+ exp = new TextExporter((CharsetEncoder)null);
+ fail();
+ }catch(NullPointerException e){
+ // GOOD
+ }
+
+ return;
+ }
+
+ /**
* Test of getEncoder method, of class TextExporter.
*/
@Test
// GOOD
}
+ try{
+ exporter.setCharBufSize(0);
+ fail();
+ }catch(IllegalArgumentException e){
+ // GOOD
+ }
+
return;
}
/**
* Test of dumpText method, of class TextExporter.
+ * @throws Exception
*/
@Test
public void testDumpText() throws Exception {
/**
* Test of encodeToByteStream method, of class TextExporter.
+ * @throws Exception
*/
@Test
public void testEncodeToByteStream() throws Exception {