mil.dod.th.ose.utils/test/mil/dod/th/ose/utils/TestConfigurationUtils.java
@Test
    public final void testCloneDictionary()
    {
        Dictionary<String, Object> original = new Hashtable<String, Object>();
        original.put("a", 50);
        original.put("b", "test");
        original.put("c", 71.56);
        
        Dictionary<String, Object> clone = ConfigurationUtils.cloneDictionary(original);
        
        assertThat(original, not(sameInstance(clone)));
        assertThat(clone.size(), is(3));
        assertThat((Integer)clone.get("a"), is(50));
        assertThat((String)clone.get("b"), is("test"));
        assertThat((Double)clone.get("c"), is(71.56));
    }
/**
     * Test that the clone method will copy a dictionary into a new object.
     */
Test that the clone method will copy a dictionary into a new object.
Test that the clone method will copy a dictionary into a new object .
@Test
    public final void testCloneDictionary()
    {
        Dictionary<String, Object> original = new Hashtable<String, Object>();
        original.put("a", 50);
        original.put("b", "test");
        original.put("c", 71.56);
        Dictionary<String, Object> clone = ConfigurationUtils.cloneDictionary(original);
        assertThat(original, not(sameInstance(clone)));
        assertThat(clone.size(), is(3));
        assertThat((Integer)clone.get("a"), is(50));
        assertThat((String)clone.get("b"), is("test"));
        assertThat((Double)clone.get("c"), is(71.56));
    }
@ Test public final void testCloneDictionary ( ) { Dictionary < String , Object > original = new Hashtable < String , Object > ( ) ; original . put ( "a" , 50 ) ; original . put ( "b" , "test" ) ; original . put ( "c" , 71.56 ) ; Dictionary < String , Object > clone = ConfigurationUtils . cloneDictionary ( original ) ; assertThat ( original , not ( sameInstance ( clone ) ) ) ; assertThat ( clone . size ( ) , is ( 3 ) ) ; assertThat ( ( Integer ) clone . get ( "a" ) , is ( 50 ) ) ; assertThat ( ( String ) clone . get ( "b" ) , is ( "test" ) ) ; assertThat ( ( Double ) clone . get ( "c" ) , is ( 71.56 ) ) ; }
Test that the clone method will copy a dictionary into a new object.
Test that the clone method will copy a dictionary into a new object .