View Javadoc
1   package org.kuali.ole.pojo;
2   
3   import org.junit.Test;
4   import org.kuali.ole.BaseTestCase;
5   
6   /**
7    * Created with IntelliJ IDEA.
8    * User: ?
9    * Date: 1/21/13
10   * Time: 4:49 PM
11   * To change this template use File | Settings | File Templates.
12   */
13  
14  public class OleException_UT extends BaseTestCase {
15  
16      @Test
17      public void testOleException() throws OleException, ArithmeticException {
18  
19          try {
20              throw new OleException();
21          } catch (OleException e) {
22              e.getCause();
23              e.getMessage();
24              e.getStackTrace();
25          }
26          try {
27              throw new OleException("exception", new Throwable());
28          } catch (OleException e) {
29              e.getCause();
30              e.getMessage();
31              e.getStackTrace();
32          }
33          try {
34              throw new OleException("exception");
35          } catch (OleException e) {
36              e.getCause();
37              e.getMessage();
38              e.getStackTrace();
39          }
40          try {
41              throw new OleException(new Throwable());
42          } catch (OleException e) {
43              e.getCause();
44              e.getMessage();
45              e.getStackTrace();
46          }
47      }
48  }