@Test public void testGetKeys() throws Exception { ResourceBundle testBundle = BundleFactory.getBundle("properties.PseudoBundle"); Enumeration<String> e = testBundle.getKeys(); assertNotNull(e); boolean foundAlphabet = false; while (e.hasMoreElements()) { if ("alphabet".equals(e.nextElement())) { foundAlphabet = true; } } assertTrue(foundAlphabet, "Found the 'alphabet' bundle property"); }
@Override public Enumeration<String> getKeys() { return baseBundle.getKeys(); }
PseudoBundle extends ResourceBundle { @Override public Enumeration<String> getKeys() { return baseBundle.getKeys(); } }
PseudoBundle extends ResourceBundle { @Override public Enumeration<String> getKeys() { return baseBundle.getKeys(); } PseudoBundle(ResourceBundle baseBundle); }
PseudoBundle extends ResourceBundle { @Override public Enumeration<String> getKeys() { return baseBundle.getKeys(); } PseudoBundle(ResourceBundle baseBundle); static boolean isEnabled(); @Override Enumeration<String> getKeys(); }
PseudoBundle extends ResourceBundle { @Override public Enumeration<String> getKeys() { return baseBundle.getKeys(); } PseudoBundle(ResourceBundle baseBundle); static boolean isEnabled(); @Override Enumeration<String> getKeys(); static final String PSEUDO_BUNDLE_PROPERTY; static final String PSEUDO_BUNDLE_NORMAL; static final String PSEUDO_BUNDLE_WIDE; }