ref #8189 ConfigFileUtil as spring bean in deafult context and tests implemented
[cdmlib.git] / cdmlib-persistence / src / test / java / eu / etaxonomy / cdm / config / ConfigFileUtilTest.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9
10 package eu.etaxonomy.cdm.config;
11
12 import java.io.File;
13
14 import org.junit.Assert;
15 import org.junit.Ignore;
16 import org.junit.Test;
17
18 import eu.etaxonomy.cdm.common.CdmUtils;
19
20 public class ConfigFileUtilTest {
21
22
23 @Test
24 public void testGetFolderSeperator() {
25 Assert.assertEquals(File.separator, CdmUtils.getFolderSeperator());
26 }
27
28 @Test
29 @Ignore
30 public void testGetHomeDir() {
31 String userHome = System.getProperty("user.home");
32 Assert.assertEquals(userHome, ConfigFileUtil.getCdmHomeDir());
33 }
34
35
36
37 }