mil.dod.th.ose.config/test/mil/dod/th/ose/config/loading/impl/TestConfigurationMgr.java
@SuppressWarnings({"unchecked"})
    @Test
    public void testFrameworkEventStarted_NoConfigsFile() throws IOException, UnmarshalException
    {
        when(m_BundleContext.getProperty(Mockito.anyString())).thenReturn("whoa/what/itsnotthere/");
        when(m_FileService.doesFileExist(Mockito.any(File.class))).thenReturn(false);
        when(m_ConfigAdmin.getConfiguration(ConfigurationMgr.class.getName())).thenReturn(m_OSGiConfiguration);
        when(m_OSGiConfiguration.getProperties()).thenReturn(null);
        
        m_SUT.activate(m_BundleContext);
        
        verify(m_FactoryObjLoader, never()).process(anyList(), anyBoolean());
        verify(m_OsgiConfigLoader, never()).process(anyList(), anyBoolean());
        verify(m_AddrConfigLoader, never()).process(anyList(), anyBoolean());
        verify(m_EventConfigLoader, never()).process(anyList());
        verify(m_ChannelConfigLoader, never()).processSocketChannels(anyList());
        verify(m_ChannelConfigLoader, never()).processTransportChannels(anyList());

        EventAdminVerifier.assertNoEventByTopic(m_EventAdmin,
            ConfigLoadingConstants.TOPIC_CONFIG_PROCESSING_COMPLETE_EVENT);
    }
/**
     * Verify that on framework started event if the configuration file cannot be found no process methods are invoked
     * or update of the configuration admin properties.
     */
Verify that on framework started event if the configuration file cannot be found no process methods are invoked
or update of the configuration admin properties.
Verify that on framework started event if the configuration file cannot be found no process methods are invoked or update of the configuration admin properties .
@SuppressWarnings({"unchecked"})
    @Test
    public void testFrameworkEventStarted_NoConfigsFile() throws IOException, UnmarshalException
    {
        when(m_BundleContext.getProperty(Mockito.anyString())).thenReturn("whoa/what/itsnotthere/");
        when(m_FileService.doesFileExist(Mockito.any(File.class))).thenReturn(false);
        when(m_ConfigAdmin.getConfiguration(ConfigurationMgr.class.getName())).thenReturn(m_OSGiConfiguration);
        when(m_OSGiConfiguration.getProperties()).thenReturn(null);
        m_SUT.activate(m_BundleContext);
        verify(m_FactoryObjLoader, never()).process(anyList(), anyBoolean());
        verify(m_OsgiConfigLoader, never()).process(anyList(), anyBoolean());
        verify(m_AddrConfigLoader, never()).process(anyList(), anyBoolean());
        verify(m_EventConfigLoader, never()).process(anyList());
        verify(m_ChannelConfigLoader, never()).processSocketChannels(anyList());
        verify(m_ChannelConfigLoader, never()).processTransportChannels(anyList());
        EventAdminVerifier.assertNoEventByTopic(m_EventAdmin,
            ConfigLoadingConstants.TOPIC_CONFIG_PROCESSING_COMPLETE_EVENT);
    }
@ SuppressWarnings ( { "unchecked" } ) @ Test public void testFrameworkEventStarted_NoConfigsFile ( ) throws IOException , UnmarshalException { when ( m_BundleContext . getProperty ( Mockito . anyString ( ) ) ) . thenReturn ( "whoa/what/itsnotthere/" ) ; when ( m_FileService . doesFileExist ( Mockito . any ( File . class ) ) ) . thenReturn ( false ) ; when ( m_ConfigAdmin . getConfiguration ( ConfigurationMgr . class . getName ( ) ) ) . thenReturn ( m_OSGiConfiguration ) ; when ( m_OSGiConfiguration . getProperties ( ) ) . thenReturn ( null ) ; m_SUT . activate ( m_BundleContext ) ; verify ( m_FactoryObjLoader , never ( ) ) . process ( anyList ( ) , anyBoolean ( ) ) ; verify ( m_OsgiConfigLoader , never ( ) ) . process ( anyList ( ) , anyBoolean ( ) ) ; verify ( m_AddrConfigLoader , never ( ) ) . process ( anyList ( ) , anyBoolean ( ) ) ; verify ( m_EventConfigLoader , never ( ) ) . process ( anyList ( ) ) ; verify ( m_ChannelConfigLoader , never ( ) ) . processSocketChannels ( anyList ( ) ) ; verify ( m_ChannelConfigLoader , never ( ) ) . processTransportChannels ( anyList ( ) ) ; EventAdminVerifier . assertNoEventByTopic ( m_EventAdmin , ConfigLoadingConstants . TOPIC_CONFIG_PROCESSING_COMPLETE_EVENT ) ; }
Verify that on framework started event if the configuration file cannot be found no process methods are invoked
 or update of the configuration admin properties.
Verify that on framework started event if the configuration file cannot be found no process methods are invoked or update of the configuration admin properties .