KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > commons > utils > TestMapResourceBundle


1  /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5
6 package org.exoplatform.commons.utils;
7
8 import java.util.ResourceBundle JavaDoc;
9
10 import junit.framework.TestCase;
11 import java.util.*;
12
13 /**
14  * @author Benjamin Mestrallet
15  * benjamin.mestrallet@exoplatform.com
16  */

17 public class TestMapResourceBundle extends TestCase{
18
19   public void testResolveDependencies(){
20     ResourceBundle JavaDoc rB = ResourceBundle.getBundle("org.exoplatform.commons.utils.resources");
21     MapResourceBundle mapRB = new MapResourceBundle(rB, new Locale("en"));
22     mapRB.resolveDependencies();
23     //System.out.println("KEYYYYYYYYY2 "+mapRB.getString("key1"));
24
System.out.println("KEYYYYYYYYY2 "+mapRB.getString("key2"));
25     //System.out.println("KEYYYYYYYYY2 "+mapRB.getString("key3"));
26
}
27   
28 }
29
Popular Tags