test_class.file: herd-code/herd-dao/src/test/java/org/finra/herd/dao/helper/JavaPropertiesHelperTest.java
test_class.identifier: JavaPropertiesHelperTest
test_class.superclass: extends AbstractDaoTest
test_case.body: @Test
      public void testToMap()
      {
          Properties properties = new Properties();
          properties.setProperty("a", "b");
          properties.setProperty("c", "d");
          Map<String, Object> map = javaPropertiesHelper.toMap(properties);
  
          Assert.assertEquals("map size", 2, map.size());
          Assert.assertEquals("map ['a']", map.get("a"), "b");
          Assert.assertEquals("map ['b']", map.get("c"), "d");
      }
test_case.class_method_signature: JavaPropertiesHelperTest.testToMap()
test_case.full_signature: @Test public void testToMap()
test_case.identifier: testToMap
test_case.invocations: setProperty setProperty toMap assertEquals size assertEquals get assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToMap()
focal_class.file: herd-code/herd-dao/src/main/java/org/finra/herd/dao/helper/JavaPropertiesHelper.java
focal_class.identifier: JavaPropertiesHelper
focal_class.class_method_signature: JavaPropertiesHelper.toMap(Properties properties)
focal_class.full_signature: public Map<String, Object> toMap(Properties properties)
focal_class.identifier: toMap
focal_class.modifiers: public
focal_class.parameters: (Properties properties)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> toMap(Properties properties)
focal_class.class_method_signature: JavaPropertiesHelper.getProperties(String propertiesString)
focal_class.full_signature: public Properties getProperties(String propertiesString)
focal_class.identifier: getProperties
focal_class.modifiers: public
focal_class.parameters: (String propertiesString)
focal_class.return: Properties
focal_class.signature: Properties getProperties(String propertiesString)
focal_class.class_method_signature: JavaPropertiesHelper.getProperties(InputStream inputStream)
focal_class.full_signature: public Properties getProperties(InputStream inputStream)
focal_class.identifier: getProperties
focal_class.modifiers: public
focal_class.parameters: (InputStream inputStream)
focal_class.return: Properties
focal_class.signature: Properties getProperties(InputStream inputStream)
focal_method.body: public Map<String, Object> toMap(Properties properties)
      {
          Map<String, Object> map = new HashMap<>();
          for (Map.Entry<Object, Object> property : properties.entrySet())
          {
              String key = property.getKey().toString();
              Object value = property.getValue();
  
              map.put(key, value);
          }
          return map;
      }
focal_method.class_method_signature: JavaPropertiesHelper.toMap(Properties properties)
focal_method.full_signature: public Map<String, Object> toMap(Properties properties)
focal_method.identifier: toMap
focal_method.invocations: entrySet toString getKey getValue put
focal_method.modifiers: public
focal_method.parameters: (Properties properties)
focal_method.return: Map<String, Object>
focal_method.signature: Map<String, Object> toMap(Properties properties)