mil.dod.th.ose.config/test/mil/dod/th/ose/config/loading/impl/TestOSGiConfigLoaderImpl.java
@SuppressWarnings({"rawtypes", "unchecked"})
    @Test
    public void testProcessNoInitialProps() throws IOException
    {
        final List<PidConfig> configs = createConfigList();
        
        m_SUT.process(configs, true);
        
        // just test one config to make sure correct properties are set
        final ArgumentCaptor<Dictionary> propsCaptor = ArgumentCaptor.forClass(Dictionary.class);
        verify(m_ConfigOverride).update(propsCaptor.capture());
        
        // should be exactly 3 properties, no more
        Dictionary<String, Object> propList = propsCaptor.getValue();
        assertThat(propList.get("someInt"), is((Object)10));
        assertThat(propList.get("someString"), is((Object)"value"));
        assertThat(propList.get("someShort"), is((Object)(short)89));
        assertThat(propList.size(), is(3));
    }
/**
     * Verify that properties get set correctly if not properties are set initially.
     */
Verify that properties get set correctly if not properties are set initially.
Verify that properties get set correctly if not properties are set initially .
@SuppressWarnings({"rawtypes", "unchecked"})
    @Test
    public void testProcessNoInitialProps() throws IOException
    {
        final List<PidConfig> configs = createConfigList();
        m_SUT.process(configs, true);
        final ArgumentCaptor<Dictionary> propsCaptor = ArgumentCaptor.forClass(Dictionary.class);
        verify(m_ConfigOverride).update(propsCaptor.capture());
        Dictionary<String, Object> propList = propsCaptor.getValue();
        assertThat(propList.get("someInt"), is((Object)10));
        assertThat(propList.get("someString"), is((Object)"value"));
        assertThat(propList.get("someShort"), is((Object)(short)89));
        assertThat(propList.size(), is(3));
    }
@ SuppressWarnings ( { "rawtypes" , "unchecked" } ) @ Test public void testProcessNoInitialProps ( ) throws IOException { final List < PidConfig > configs = createConfigList ( ) ; m_SUT . process ( configs , true ) ; final ArgumentCaptor < Dictionary > propsCaptor = ArgumentCaptor . forClass ( Dictionary . class ) ; verify ( m_ConfigOverride ) . update ( propsCaptor . capture ( ) ) ; Dictionary < String , Object > propList = propsCaptor . getValue ( ) ; assertThat ( propList . get ( "someInt" ) , is ( ( Object ) 10 ) ) ; assertThat ( propList . get ( "someString" ) , is ( ( Object ) "value" ) ) ; assertThat ( propList . get ( "someShort" ) , is ( ( Object ) ( short ) 89 ) ) ; assertThat ( propList . size ( ) , is ( 3 ) ) ; }
Verify that properties get set correctly if not properties are set initially.
Verify that properties get set correctly if not properties are set initially .
// just test one config to make sure correct properties are set // should be exactly 3 properties, no more