4 package jp.sfjp.mikutoga.bin.export;
6 import java.nio.charset.CharacterCodingException;
7 import org.junit.After;
8 import org.junit.AfterClass;
9 import org.junit.Before;
10 import org.junit.BeforeClass;
11 import org.junit.Test;
12 import static org.junit.Assert.*;
17 public class IllegalTextExportExceptionTest {
19 public IllegalTextExportExceptionTest() {
23 public static void setUpClass() {
27 public static void tearDownClass() {
35 public void tearDown() {
39 public void testSomeMethod() {
40 System.out.println("constructor");
42 IllegalTextExportException ex;
44 ex = new IllegalTextExportException();
45 assertNull(ex.getCause());
46 assertNull(ex.getMessage());
48 ex = new IllegalTextExportException("msg");
49 assertNull(ex.getCause());
50 assertEquals("msg", ex.getMessage());
52 CharacterCodingException cex = new CharacterCodingException();
53 ex = new IllegalTextExportException(cex);
54 assertEquals(cex, ex.getCause());
55 assertEquals(cex.toString(), ex.getMessage());
57 ex = new IllegalTextExportException("msg", cex);
58 assertEquals(cex, ex.getCause());
59 assertEquals("msg", ex.getMessage());