Mercurial > dive4elements > gnv-client
view gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/ressource/RessourceFactoryTestCase.java @ 1145:dfe1ac687c7f tip
added tags
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:16:15 +0200 |
parents | f953c9a559d8 |
children |
line wrap: on
line source
/* * Copyright (c) 2010 by Intevation GmbH * * This program is free software under the LGPL (>=v2.1) * Read the file LGPL.txt coming with the software for details * or visit http://www.gnu.org/licenses/ if it does not exist. */ package de.intevation.gnv.artifacts.ressource; import de.intevation.artifactdatabase.DefaultPreferredLocale; import de.intevation.artifacts.PreferredLocale; import junit.framework.TestCase; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; /** * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> * */ public class RessourceFactoryTestCase extends TestCase { /** * the logger, used to log exceptions and additonaly information */ private static Logger log = null; static { BasicConfigurator.configure(); log = Logger.getLogger(RessourceFactoryTestCase.class); } /** * Constructor * * @param name */ public RessourceFactoryTestCase(String name) { super(name); } /** * @see junit.framework.TestCase#setUp() */ @Override protected void setUp() throws Exception { super.setUp(); // System.setProperty("artifact.ressource.dir", // "src/test/ressources/lang"); } public void testRessurceFactoryTestCase() { ; String value = RessourceFactory.getInstance() .getRessource( new PreferredLocale[] { new DefaultPreferredLocale( "de", 1.0f) }, "fis_modeldata", "N/N"); log.debug(value); value = RessourceFactory.getInstance() .getRessource( new PreferredLocale[] { new DefaultPreferredLocale( "en", 1.0f) }, "fis_modeldata", "N/N"); log.debug(value); } }