4 package jp.sourceforge.mikutoga.pmd;
6 import org.junit.After;
7 import org.junit.AfterClass;
8 import org.junit.Before;
9 import org.junit.BeforeClass;
10 import org.junit.Test;
11 import static org.junit.Assert.*;
16 public class IllegalPmdDataExceptionTest {
18 public IllegalPmdDataExceptionTest() {
22 public static void setUpClass() {
26 public static void tearDownClass() {
34 public void tearDown() {
38 public void testSomeMethod() {
39 IllegalPmdDataException ex;
41 ex = new IllegalPmdDataException();
42 assertNull(ex.getCause());
43 assertNull(ex.getMessage());
45 ex = new IllegalPmdDataException("msg");
46 assertNull(ex.getCause());
47 assertEquals("msg", ex.getMessage());
49 Throwable cex = new IllegalArgumentException();
50 ex = new IllegalPmdDataException(cex);
51 assertEquals(cex, ex.getCause());
52 assertEquals(cex.toString(), ex.getMessage());