1 8 package org.apache.avalon.excalibur.i18n.test; 9 10 import java.util.Map ; 11 import java.util.HashMap ; 12 13 import org.apache.avalon.framework.configuration.Configuration; 14 15 import org.apache.avalon.excalibur.testcase.ExcaliburTestCase; 16 import org.apache.avalon.excalibur.i18n.BundleInfo; 17 import org.apache.avalon.excalibur.i18n.XmlBundle; 18 import org.apache.avalon.excalibur.i18n.BundleSelector; 19 20 24 public class DefaultBundleLoaderTestCase extends ExcaliburTestCase { 25 26 private BundleSelector bundleSelector; 27 28 public DefaultBundleLoaderTestCase( String name ) { 29 super(name); 30 } 31 32 public void setUp() throws Exception { 33 super.setUp(); 34 this.bundleSelector = (BundleSelector) this.manager.lookup(BundleSelector.ROLE); 35 } 36 37 public void tearDown() throws Exception { 38 manager.release(this.bundleSelector); 39 this.bundleSelector = null; 40 super.tearDown(); 41 } 42 43 public void testLoading() throws Exception { 44 this.bundleSelector.select("ee", "uu"); 45 } 46 47 public static void main(String [] args) { 48 ExcaliburTestCase test = new DefaultBundleLoaderTestCase("test"); 49 test.run(); 50 } 51 } 52 | Popular Tags |