mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/TestAbstractFactoryObject.java
@SuppressWarnings({ "rawtypes", "unchecked" })
    @Test
    public void testSetProperties_Empty() throws IllegalArgumentException, 
        IllegalStateException, FactoryException, IOException, ConfigurationException
    {
        Configuration config = ConfigurationAdminMocker.getConfigByPid(OBJ_PID);
        
        Map<String, Object> properties = new Hashtable<String, Object>();
        m_SUT.setProperties(properties);
        
        ArgumentCaptor<Dictionary> dictionaryCap1 = ArgumentCaptor.forClass(Dictionary.class);
        verify(config).update(dictionaryCap1.capture());

        verify(m_WakeLock).activate();
        verify(m_WakeLock).cancel();
    }
/**
     * Verify that if empty properties are passed that the config IS still updated. As this would
     * be how a configuration would be reset.
     */
Verify that if empty properties are passed that the config IS still updated. As this would
be how a configuration would be reset.
Verify that if empty properties are passed that the config IS still updated . As this would be how a configuration would be reset .
@SuppressWarnings({ "rawtypes", "unchecked" })
    @Test
    public void testSetProperties_Empty() throws IllegalArgumentException, 
        IllegalStateException, FactoryException, IOException, ConfigurationException
    {
        Configuration config = ConfigurationAdminMocker.getConfigByPid(OBJ_PID);
        Map<String, Object> properties = new Hashtable<String, Object>();
        m_SUT.setProperties(properties);
        ArgumentCaptor<Dictionary> dictionaryCap1 = ArgumentCaptor.forClass(Dictionary.class);
        verify(config).update(dictionaryCap1.capture());
        verify(m_WakeLock).activate();
        verify(m_WakeLock).cancel();
    }
@ SuppressWarnings ( { "rawtypes" , "unchecked" } ) @ Test public void testSetProperties_Empty ( ) throws IllegalArgumentException , IllegalStateException , FactoryException , IOException , ConfigurationException { Configuration config = ConfigurationAdminMocker . getConfigByPid ( OBJ_PID ) ; Map < String , Object > properties = new Hashtable < String , Object > ( ) ; m_SUT . setProperties ( properties ) ; ArgumentCaptor < Dictionary > dictionaryCap1 = ArgumentCaptor . forClass ( Dictionary . class ) ; verify ( config ) . update ( dictionaryCap1 . capture ( ) ) ; verify ( m_WakeLock ) . activate ( ) ; verify ( m_WakeLock ) . cancel ( ) ; }
Verify that if empty properties are passed that the config IS still updated.
Verify that if empty properties are passed that the config IS still updated .