mil.dod.th.ose.config/test/mil/dod/th/ose/config/loading/impl/TestOSGiConfigLoaderImpl.java
@SuppressWarnings("unchecked")
    @Test
    public void testProcessSecondRun() throws IOException
    {
        final List<PidConfig> configs = createConfigList();

        m_SUT.process(configs, false);
        
        verify(m_ConfigAdmin, never()).getConfiguration(CONFIG_NO_OVERRIDE, null);
        verify(m_ConfigAdmin, never()).getConfiguration(CONFIG_OVERRIDE, null);
        verify(m_ConfigAdmin, never()).createFactoryConfiguration(FACTORY_CONFIG_PID, null);
        
        verify(m_ConfigOverride, never()).update(Mockito.any(Dictionary.class));
        verify(m_ConfigNoOverride, never()).update(Mockito.any(Dictionary.class));
        verify(m_FactoryConfig, never()).update(Mockito.any(Dictionary.class));
    }
/**
     * Verify that the process method does not call configuration admin methods after a first run.
     */
Verify that the process method does not call configuration admin methods after a first run.
Verify that the process method does not call configuration admin methods after a first run .
@SuppressWarnings("unchecked")
    @Test
    public void testProcessSecondRun() throws IOException
    {
        final List<PidConfig> configs = createConfigList();
        m_SUT.process(configs, false);
        verify(m_ConfigAdmin, never()).getConfiguration(CONFIG_NO_OVERRIDE, null);
        verify(m_ConfigAdmin, never()).getConfiguration(CONFIG_OVERRIDE, null);
        verify(m_ConfigAdmin, never()).createFactoryConfiguration(FACTORY_CONFIG_PID, null);
        verify(m_ConfigOverride, never()).update(Mockito.any(Dictionary.class));
        verify(m_ConfigNoOverride, never()).update(Mockito.any(Dictionary.class));
        verify(m_FactoryConfig, never()).update(Mockito.any(Dictionary.class));
    }
@ SuppressWarnings ( "unchecked" ) @ Test public void testProcessSecondRun ( ) throws IOException { final List < PidConfig > configs = createConfigList ( ) ; m_SUT . process ( configs , false ) ; verify ( m_ConfigAdmin , never ( ) ) . getConfiguration ( CONFIG_NO_OVERRIDE , null ) ; verify ( m_ConfigAdmin , never ( ) ) . getConfiguration ( CONFIG_OVERRIDE , null ) ; verify ( m_ConfigAdmin , never ( ) ) . createFactoryConfiguration ( FACTORY_CONFIG_PID , null ) ; verify ( m_ConfigOverride , never ( ) ) . update ( Mockito . any ( Dictionary . class ) ) ; verify ( m_ConfigNoOverride , never ( ) ) . update ( Mockito . any ( Dictionary . class ) ) ; verify ( m_FactoryConfig , never ( ) ) . update ( Mockito . any ( Dictionary . class ) ) ; }
Verify that the process method does not call configuration admin methods after a first run.
Verify that the process method does not call configuration admin methods after a first run .