mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/impl/TestFactoryConfigurationService.java
@SuppressWarnings("unchecked")
    @Test
    public void testUpdated() throws FactoryException, ConfigurationException
    {
        FactoryObjectInternal obj = mock(FactoryObjectInternal.class);
        String pid = "oldCar";
        when(m_FactoryReg.getObjectByPid(pid)).thenReturn(obj);
        Dictionary<String, Object> props = new Hashtable<>();
        props.put("k", "l");
        
        //act
        m_SUT.updated(pid, props);
        
        //verify
        verify(m_FactoryReg).handleUpdated(obj);
        verify(obj).blockingPropsUpdate(ConfigurationUtils.convertDictionaryPropsToMap(props));
    }
/**
     * Verify updated actually updates configuration properties.
     */
Verify updated actually updates configuration properties.
Verify updated actually updates configuration properties .
@SuppressWarnings("unchecked")
    @Test
    public void testUpdated() throws FactoryException, ConfigurationException
    {
        FactoryObjectInternal obj = mock(FactoryObjectInternal.class);
        String pid = "oldCar";
        when(m_FactoryReg.getObjectByPid(pid)).thenReturn(obj);
        Dictionary<String, Object> props = new Hashtable<>();
        props.put("k", "l");
        m_SUT.updated(pid, props);
        verify(m_FactoryReg).handleUpdated(obj);
        verify(obj).blockingPropsUpdate(ConfigurationUtils.convertDictionaryPropsToMap(props));
    }
@ SuppressWarnings ( "unchecked" ) @ Test public void testUpdated ( ) throws FactoryException , ConfigurationException { FactoryObjectInternal obj = mock ( FactoryObjectInternal . class ) ; String pid = "oldCar" ; when ( m_FactoryReg . getObjectByPid ( pid ) ) . thenReturn ( obj ) ; Dictionary < String , Object > props = new Hashtable < > ( ) ; props . put ( "k" , "l" ) ; m_SUT . updated ( pid , props ) ; verify ( m_FactoryReg ) . handleUpdated ( obj ) ; verify ( obj ) . blockingPropsUpdate ( ConfigurationUtils . convertDictionaryPropsToMap ( props ) ) ; }
Verify updated actually updates configuration properties.
Verify updated actually updates configuration properties .
//act //verify