View Javadoc
1   package org.kuali.ole.docstore.util;
2   
3   import org.junit.Test;
4   import org.kuali.ole.BaseTestCase;
5   
6   import java.io.IOException;
7   import java.util.Properties;
8   
9   /**
10   * Created with IntelliJ IDEA.
11   * User: ?
12   * Date: 1/21/13
13   * Time: 5:04 PM
14   * To change this template use File | Settings | File Templates.
15   */
16  
17  
18  public class DocStoreEnvUtil_UT extends BaseTestCase {
19  
20      @Test
21      public void testDocStoreEnvUtil() throws IOException {
22          DocStoreEnvUtil docStoreEnvUtil = new DocStoreEnvUtil();
23          docStoreEnvUtil.getDocStorePropertiesFilePath();
24          docStoreEnvUtil.setDocStorePropertiesFilePath(docStoreEnvUtil.getDocStorePropertiesFilePath());
25          docStoreEnvUtil.getDocStorePropertiesFolderPath();
26          docStoreEnvUtil.setDocStorePropertiesFolderPath(docStoreEnvUtil.getDocStorePropertiesFolderPath());
27  //        docStoreEnvUtil.getJackrabbitConfigFolderPath();
28  //        docStoreEnvUtil.setJackrabbitConfigFolderPath(docStoreEnvUtil.getJackrabbitConfigFolderPath());
29  //        docStoreEnvUtil.getJackrabbitPropertyFilePath();
30  //        docStoreEnvUtil.setJackrabbitPropertyFilePath(docStoreEnvUtil.getJackrabbitPropertyFilePath());
31  //        docStoreEnvUtil.getJackrabbitFolderPath();
32  //        docStoreEnvUtil.setJackrabbitFolderPath(docStoreEnvUtil.getJackrabbitFolderPath());
33          docStoreEnvUtil.setRootFolderPath(docStoreEnvUtil.getRootFolderPath());
34          docStoreEnvUtil.setVendor("derby");
35          docStoreEnvUtil.setProperties(new Properties());
36          docStoreEnvUtil.initTestEnvironment();
37          docStoreEnvUtil.initEnvironment();
38          docStoreEnvUtil.getRootFolderPath();
39          docStoreEnvUtil.logEnvironment();
40          docStoreEnvUtil.printEnvironment();
41      }
42  }
43