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