mil.dod.th.ose.utils/test/mil/dod/th/ose/utils/TestConfigurationUtils.java
@Test
    public final void testConvertDictionaryPropsToMap()
    {
        Dictionary<String, Object> dictProps = new Hashtable<String, Object>();
        dictProps.put("a", 50);
        dictProps.put("b", "test");
        dictProps.put("c", 71.56);
        
        Map<String, Object> mapProps = ConfigurationUtils.convertDictionaryPropsToMap(dictProps);
        
        assertThat(mapProps.size(), is(3));
        assertThat((Integer)mapProps.get("a"), is(50));
        assertThat((String)mapProps.get("b"), is("test"));
        assertThat((Double)mapProps.get("c"), is(71.56));
    }
/**
     * Test that the conversion method will take a dictionary and create a map with all the same properties.
     */
Test that the conversion method will take a dictionary and create a map with all the same properties.
Test that the conversion method will take a dictionary and create a map with all the same properties .
@Test
    public final void testConvertDictionaryPropsToMap()
    {
        Dictionary<String, Object> dictProps = new Hashtable<String, Object>();
        dictProps.put("a", 50);
        dictProps.put("b", "test");
        dictProps.put("c", 71.56);
        Map<String, Object> mapProps = ConfigurationUtils.convertDictionaryPropsToMap(dictProps);
        assertThat(mapProps.size(), is(3));
        assertThat((Integer)mapProps.get("a"), is(50));
        assertThat((String)mapProps.get("b"), is("test"));
        assertThat((Double)mapProps.get("c"), is(71.56));
    }
@ Test public final void testConvertDictionaryPropsToMap ( ) { Dictionary < String , Object > dictProps = new Hashtable < String , Object > ( ) ; dictProps . put ( "a" , 50 ) ; dictProps . put ( "b" , "test" ) ; dictProps . put ( "c" , 71.56 ) ; Map < String , Object > mapProps = ConfigurationUtils . convertDictionaryPropsToMap ( dictProps ) ; assertThat ( mapProps . size ( ) , is ( 3 ) ) ; assertThat ( ( Integer ) mapProps . get ( "a" ) , is ( 50 ) ) ; assertThat ( ( String ) mapProps . get ( "b" ) , is ( "test" ) ) ; assertThat ( ( Double ) mapProps . get ( "c" ) , is ( 71.56 ) ) ; }
Test that the conversion method will take a dictionary and create a map with all the same properties.
Test that the conversion method will take a dictionary and create a map with all the same properties .