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
|
package eu.etaxonomy.cdm.test.function;
|
10
|
|
11
|
import java.io.IOException;
|
12
|
|
13
|
import org.apache.log4j.Logger;
|
14
|
|
15
|
import eu.etaxonomy.cdm.api.application.CdmApplicationUtils;
|
16
|
|
17
|
/**
|
18
|
* @author a.mueller
|
19
|
* @since 20.11.2008
|
20
|
*/
|
21
|
public class TestCdmApplicationUtils {
|
22
|
|
23
|
private static final Logger logger = Logger.getLogger(TestCdmApplicationUtils.class);
|
24
|
|
25
|
private boolean testWritableResourceDirectory() throws IOException{
|
26
|
CdmApplicationUtils.getWritableResourceDir();
|
27
|
return true;
|
28
|
}
|
29
|
|
30
|
public static void main(String[] args) {
|
31
|
TestCdmApplicationUtils me = new TestCdmApplicationUtils();
|
32
|
try {
|
33
|
me.testWritableResourceDirectory();
|
34
|
} catch (IOException e) {
|
35
|
logger.error(e);
|
36
|
throw new RuntimeException(e);
|
37
|
}
|
38
|
}
|
39
|
}
|