001package org.kuali.ole.utility; 002 003import org.junit.Test; 004import org.kuali.ole.docstore.xstream.BaseTestCase; 005import org.slf4j.Logger; 006import org.slf4j.LoggerFactory; 007 008import static junit.framework.Assert.assertNotNull; 009 010/** 011 * Created with IntelliJ IDEA. 012 * User: ? 013 * Date: ? 014 * Time: ? 015 * To change this template use File | Settings | File Templates. 016 */ 017public class ConfigUtil_UT extends BaseTestCase { 018 private static final Logger LOG = LoggerFactory.getLogger(ConfigUtil_UT.class); 019 020 @Test 021 public void testConfigUtil() throws Exception { 022 ConfigUtil configUtil = new ConfigUtil(); 023 String kualiHome = configUtil.getKualiHome(); 024 LOG.info(kualiHome); 025 String applicationHome = configUtil.getApplicationHome(Constants.KUALI_GROUP, Constants.OLE_DOCSTORE_APP); 026 LOG.info(applicationHome); 027 assertNotNull(configUtil.getValue(null, "JAVA_HOME", null)); 028 029 030 } 031 032}