1 /*
2 Bloof - visualize the evolution of your software project
3 Copyright ( C ) 2003 Lukasz Pekacki <lukasz@pekacki.de>
4 http://bloof.sf.net/
5
6 This program is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License along with
15 this program; if not, write to the Free Software Foundation, Inc.,
16 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18 $RCSfile: LanguageTest.java,v $
19 Created on $Date: 2003/05/30 13:52:24 $
20 */
21 package net.sf.bloof.test.util.intl;
22
23 import net.sf.bloof.util.intl.Language;
24 import net.sf.bloof.util.intl.Messages;
25 import net.sf.bloof.util.intl.Text;
26
27 import junit.framework.TestCase;
28
29 /***
30 *
31 * @author Lukasz Pekacki <pekacki@users.sourceforge.net>
32 * @version $Id: LanguageTest.java,v 1.3 2003/05/30 13:52:24 pekacki Exp $
33 */
34 public class LanguageTest extends TestCase {
35 private static final String ENGLISH = "English";
36 private static final String GERMAN = "Deutsch";
37 /***
38 * Tests the Internationalization of Bloof
39 */
40 public void testLanguages( ) {
41 String langId;
42 langId = Messages.getString( Text.LANGUAGE_ID );
43 assertEquals( ENGLISH, langId );
44 Messages.setLanguage( Language.GERMAN );
45 langId = Messages.getString( Text.LANGUAGE_ID );
46 assertEquals( GERMAN, langId );
47 Messages.setLanguage( Language.ENGLISH );
48 langId = Messages.getString( Text.LANGUAGE_ID );
49 assertEquals( ENGLISH, langId );
50 }
51 }
This page was automatically generated by Maven