Example usage for java.util PropertyResourceBundle keySet

List of usage examples for java.util PropertyResourceBundle keySet

Introduction

In this page you can find the example usage for java.util PropertyResourceBundle keySet.

Prototype

public Set<String> keySet() 

Source Link

Document

Returns a Set of all keys contained in this ResourceBundle and its parent bundles.

Usage

From source file:org.ebayopensource.turmeric.eclipse.utils.test.plugin.TestJDTUtil.java

/**
 * Test method for {@link org.ebayopensource.turmeric.eclipse.utils.plugin.JDTUtil#getPluginProperties(org.osgi.framework.Bundle, java.lang.String)}.
 * @throws IOException //from w w w  . j a  va2 s. c o m
 */
@Test
public void testGetPluginPropertiesBundleString() throws IOException {
    PropertyResourceBundle bundle = JDTUtil.getPluginProperties(Activator.getDefault().getBundle(),
            "plugin.properties");
    Assert.assertNotNull(bundle);
    Assert.assertFalse(bundle.keySet().isEmpty());
}

From source file:org.ebayopensource.turmeric.eclipse.utils.test.plugin.TestJDTUtil.java

/**
 * Test method for {@link org.ebayopensource.turmeric.eclipse.utils.plugin.JDTUtil#getPluginProperties(org.osgi.framework.Bundle)}.
 * @throws IOException //  w w  w  . ja va 2s.  c o  m
 */
@Test
public void testGetPluginPropertiesBundle() throws IOException {
    PropertyResourceBundle bundle = JDTUtil.getPluginProperties(Activator.getDefault().getBundle());
    Assert.assertNotNull(bundle);
    Assert.assertFalse(bundle.keySet().isEmpty());
}