01: package org.objectweb.celtix.tools.common.toolspec;
02:
03: import junit.framework.TestCase;
04: import org.objectweb.celtix.tools.common.ToolException;
05:
06: public class ToolExceptionTest extends TestCase {
07: public void testMassMethod() {
08: ToolException e = new ToolException("e");
09: assertTrue(e.getCause() == null);
10: e = new ToolException("run time exception",
11: new RuntimeException("test run time exception"));
12: assertTrue(e.getCause() instanceof RuntimeException);
13: assertTrue(e.toString() != null);
14: }
15: }
|