mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/TestAbstractFactoryObject.java
@Test
    public void testGetProperties_NullConfiguration() throws Exception
    {
        when(m_ConfigAdmin.listConfigurations(anyString())).thenReturn(null);
        
        assertThat(m_SUT.getProperties().isEmpty(), is(true));
        
        // make sure property map can be updated for easy updates by consumer
        m_SUT.getProperties().put("new-prop", "new-value");
    }
/**
     * Verify empty map is returned if returned configuration object is null. 
     */
Verify empty map is returned if returned configuration object is null.
Verify empty map is returned if returned configuration object is null .
@Test
    public void testGetProperties_NullConfiguration() throws Exception
    {
        when(m_ConfigAdmin.listConfigurations(anyString())).thenReturn(null);
        assertThat(m_SUT.getProperties().isEmpty(), is(true));
        m_SUT.getProperties().put("new-prop", "new-value");
    }
@ Test public void testGetProperties_NullConfiguration ( ) throws Exception { when ( m_ConfigAdmin . listConfigurations ( anyString ( ) ) ) . thenReturn ( null ) ; assertThat ( m_SUT . getProperties ( ) . isEmpty ( ) , is ( true ) ) ; m_SUT . getProperties ( ) . put ( "new-prop" , "new-value" ) ; }
Verify empty map is returned if returned configuration object is null.
Verify empty map is returned if returned configuration object is null .
// make sure property map can be updated for easy updates by consumer