Ejemplo n.º 1
0
 @Test
 public void testFooBundle_en() throws Exception {
   // Load the bundle with the check flags enabled.
   // this will throw an exception if there is an error
   // with either the abstract Class or the properties file
   Foo foo = BundleMaker.load(Foo.class, Locale.UK, new DefaultBundleConfiguration());
   assertNotNull(foo.bar());
 }
 @Test
 public void profileStaticSend() {
   Foo f = new Foo();
   for (int i = 0; i < MAX_RUNS; i++) {
     f.foo("s");
     f.bar("p");
   }
 }
Ejemplo n.º 3
0
 @Test
 public void testFooBundle_fr() throws Exception {
   Foo foo = BundleMaker.load(Foo.class, Locale.FRENCH, new DefaultBundleConfiguration());
   assertNotNull(foo.bar());
 }