Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/ressource/RessourceFactoryTestCase.java @ 117:ef157bd2fa92
LanguageSupport integrated
gnv-artifacts/trunk@178 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 02 Oct 2009 14:24:47 +0000 |
parents | |
children | 5ebc059064a6 |
comparison
equal
deleted
inserted
replaced
116:820238357bab | 117:ef157bd2fa92 |
---|---|
1 package de.intevation.gnv.artifacts.ressource; | |
2 | |
3 import java.util.Locale; | |
4 | |
5 import org.apache.log4j.BasicConfigurator; | |
6 import org.apache.log4j.Logger; | |
7 | |
8 import junit.framework.TestCase; | |
9 | |
10 /** | |
11 * @author Tim Englich <tim.englich@intevation.de> | |
12 * | |
13 */ | |
14 public class RessourceFactoryTestCase extends TestCase { | |
15 /** | |
16 * the logger, used to log exceptions and additonaly information | |
17 */ | |
18 private static Logger log = null; | |
19 | |
20 static { | |
21 BasicConfigurator.configure(); | |
22 log = Logger.getLogger(RessourceFactoryTestCase.class); | |
23 } | |
24 /** | |
25 * Constructor | |
26 * @param name | |
27 */ | |
28 public RessourceFactoryTestCase(String name) { | |
29 super(name); | |
30 } | |
31 | |
32 /** | |
33 * @see junit.framework.TestCase#setUp() | |
34 */ | |
35 protected void setUp() throws Exception { | |
36 super.setUp(); | |
37 // System.setProperty("artifact.ressource.dir", | |
38 // "src/test/ressources/lang"); | |
39 } | |
40 | |
41 public void testRessurceFactoryTestCase(){ | |
42 String value = RessourceFactory.getInstance().getRessource(new Locale ("de", "DE"), "fis_modeldata", "N/N"); | |
43 log.debug(value); | |
44 value = RessourceFactory.getInstance().getRessource(new Locale ("en", "EN"), "fis_modeldata", "N/N"); | |
45 log.debug(value); | |
46 } | |
47 | |
48 } |