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

Diff of /branches/2.3.x/src_junit/skrueger/i8n/TranslationTest.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 1153 by alfonx, Wed Oct 20 08:39:36 2010 UTC
# Line 97  public class TranslationTest { Line 97  public class TranslationTest {
97                  calledC.set(false);                  calledC.set(false);
98                  Translation.setActiveLang("de");                  Translation.setActiveLang("de");
99                  Translation.setActiveLang("en");                  Translation.setActiveLang("en");
100                    
101                  assertTrue(calledAl.get());                  assertTrue(calledAl.get());
102                  assertTrue(calledL.get());                  assertTrue(calledL.get());
103                  assertFalse(calledC.get());                  assertFalse(calledC.get());
# Line 130  public class TranslationTest { Line 130  public class TranslationTest {
130                  Translation.setActiveLang("ru");                  Translation.setActiveLang("ru");
131                  assertEquals("ru", t.toString());                  assertEquals("ru", t.toString());
132          }          }
133    
134            @Test
135            public void testFromOneLine() {
136                    Translation t = new Translation();
137                    t.fromOneLine("en{- 3 MBps/billion capita}");
138    
139                    assertEquals("- 3 MBps/billion capita", t.toString("en"));
140            }
141  }  }

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26