mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestFactoryObjectConfigModifierViewImpl.java
@SuppressWarnings("unchecked")
    @Test
    public void testUpdateAllPropertiesAsyncNoPid()
    {
        when(m_BaseModel.getPid()).thenReturn("");
        List<ModifiablePropertyModel> properties = new ArrayList<>();
        properties.add(m_Property1);
        when(m_ConfigWrapper.findChangedPropertiesAsync(eq(CONTROLLER_ID), eq(FACTORY_CONF_NAME), anyList()))
            .thenReturn(properties);
        
        m_SUT.updateAllPropertiesAsync();
        verify(m_FactoryMgr).createConfiguration(eq(CONTROLLER_ID), eq(m_BaseModel), anyList());     
    }
/**
     * Verify that update all props calls the correct methods when object does not have a pid.
     */
Verify that update all props calls the correct methods when object does not have a pid.
Verify that update all props calls the correct methods when object does not have a pid .
@SuppressWarnings("unchecked")
    @Test
    public void testUpdateAllPropertiesAsyncNoPid()
    {
        when(m_BaseModel.getPid()).thenReturn("");
        List<ModifiablePropertyModel> properties = new ArrayList<>();
        properties.add(m_Property1);
        when(m_ConfigWrapper.findChangedPropertiesAsync(eq(CONTROLLER_ID), eq(FACTORY_CONF_NAME), anyList()))
            .thenReturn(properties);
        m_SUT.updateAllPropertiesAsync();
        verify(m_FactoryMgr).createConfiguration(eq(CONTROLLER_ID), eq(m_BaseModel), anyList());     
    }
@ SuppressWarnings ( "unchecked" ) @ Test public void testUpdateAllPropertiesAsyncNoPid ( ) { when ( m_BaseModel . getPid ( ) ) . thenReturn ( "" ) ; List < ModifiablePropertyModel > properties = new ArrayList < > ( ) ; properties . add ( m_Property1 ) ; when ( m_ConfigWrapper . findChangedPropertiesAsync ( eq ( CONTROLLER_ID ) , eq ( FACTORY_CONF_NAME ) , anyList ( ) ) ) . thenReturn ( properties ) ; m_SUT . updateAllPropertiesAsync ( ) ; verify ( m_FactoryMgr ) . createConfiguration ( eq ( CONTROLLER_ID ) , eq ( m_BaseModel ) , anyList ( ) ) ; }
Verify that update all props calls the correct methods when object does not have a pid.
Verify that update all props calls the correct methods when object does not have a pid .