/[schmitzm]/branches/2.3.x/src_junit/skrueger/i8n/I8NUtilTest.java
ViewVC logotype

Diff of /branches/2.3.x/src_junit/skrueger/i8n/I8NUtilTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1107 by alfonx, Thu Oct 14 10:39:07 2010 UTC revision 1150 by alfonx, Mon Oct 18 12:28:24 2010 UTC
# Line 2  package skrueger.i8n; Line 2  package skrueger.i8n;
2    
3  import static org.junit.Assert.assertEquals;  import static org.junit.Assert.assertEquals;
4  import static org.junit.Assert.assertFalse;  import static org.junit.Assert.assertFalse;
5    import static org.junit.Assert.assertNotNull;
6  import static org.junit.Assert.assertTrue;  import static org.junit.Assert.assertTrue;
7    
8  import java.util.ArrayList;  import java.util.ArrayList;
9  import java.util.List;  import java.util.List;
10  import java.util.Locale;  import java.util.Locale;
11    import java.util.Set;
12    
13  import org.junit.BeforeClass;  import org.junit.BeforeClass;
14  import org.junit.Test;  import org.junit.Test;
# Line 59  public class I8NUtilTest { Line 61  public class I8NUtilTest {
61                  assertTrue(locales.contains(new Locale("en", "sg")));                  assertTrue(locales.contains(new Locale("en", "sg")));
62          }          }
63    
64            @Test
65            public void testGetLanguageCodes() {
66                    Set<String> languageCodes = I8NUtil.getLanguageCodes();
67    
68                    assertTrue(languageCodes.contains("kj"));
69            }
70    
71            @Test
72            public void testGetFirstLocaleForLang() {
73                    Locale tjLocaleSelfmade = I8NUtil.getFirstLocaleForLang("kj");
74                    assertNotNull(tjLocaleSelfmade);
75                    System.out.println(tjLocaleSelfmade);
76            }
77  }  }

Legend:
Removed from v.1107  
changed lines
  Added in v.1150

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26