1 package com.sourceforge.jpatterns.core.configuration.exceptions;
2
3 import junit.framework.Test;
4 import junit.framework.TestCase;
5 import junit.framework.TestSuite;
6
7 /**
8 * $Author:: zmicer $<br/>
9 * $Rev:: 67 $<br/> * $Date:: 2007-08-28 21:37:07 #$<br/>
10 * $Date:: 2007-08-28 21:37:07 #$<br/>
11 */
12 public class JPConfigExceptionTest extends TestCase
13 {
14 /**
15 * Contructor with name of test attribute.
16 *
17 * @param name name of the test
18 */
19 public JPConfigExceptionTest(String name)
20 {
21 super(name);
22 }
23
24 /**
25 * Perform the set up functionality for the test.
26 *
27 * @throws Exception may occur in the case of some problems
28 */
29 public void setUp() throws Exception
30 {
31 super.setUp();
32 }
33
34 /**
35 * Perform the tear down functionality for the test
36 *
37 * @throws Exception may occur in the case of some problems
38 */
39 public void tearDown() throws Exception
40 {
41 super.tearDown();
42 }
43
44 /**
45 * Test suite method
46 *
47 * @return the built test suite
48 */
49 public static Test suite()
50 {
51 return new TestSuite(JPConfigExceptionTest.class);
52 }
53
54 /**
55 * Tests {@link JPConfigException#JPConfigException}
56 *
57 * @throws Exception in the case smth. wrong occuried.
58 * @forversion 1.0
59 */
60 public void testJPCunsumerConfigurationException() throws Exception
61 {
62 final String message = "Message";
63 JPConfigException exception = new JPConfigException();
64 exception = new JPConfigException(message);
65 exception = new JPConfigException(message, new RuntimeException(message));
66 exception = new JPConfigException(new RuntimeException(message));
67 }
68 }