mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestFactoryObjectConfigModifierViewImpl.java
@Test
    public void testSetConfigPropertiesAsyncNoFactObj()
    {
        m_SUT = new FactoryObjectConfigModifierViewImpl();
        
        m_SUT.setGrowlMessageUtility(m_GrowlUtil);
        
        List<ModifiablePropertyModel> list = m_SUT.getProperties();
        assertThat(list.size(), is(0));
        
        verify(m_ConfigWrapper, never()).getConfigurationDefaultsByFactoryPidAsync(CONTROLLER_ID, FACTORY_CONF_NAME);
        verify(m_ConfigWrapper, never()).getConfigurationByPidAsync(CONTROLLER_ID, PID);       
    }
/**
     * Verify nothing happens if factory model is not set
     */
Verify nothing happens if factory model is not set
Verify nothing happens if factory model is not set
@Test
    public void testSetConfigPropertiesAsyncNoFactObj()
    {
        m_SUT = new FactoryObjectConfigModifierViewImpl();
        m_SUT.setGrowlMessageUtility(m_GrowlUtil);
        List<ModifiablePropertyModel> list = m_SUT.getProperties();
        assertThat(list.size(), is(0));
        verify(m_ConfigWrapper, never()).getConfigurationDefaultsByFactoryPidAsync(CONTROLLER_ID, FACTORY_CONF_NAME);
        verify(m_ConfigWrapper, never()).getConfigurationByPidAsync(CONTROLLER_ID, PID);       
    }
@ Test public void testSetConfigPropertiesAsyncNoFactObj ( ) { m_SUT = new FactoryObjectConfigModifierViewImpl ( ) ; m_SUT . setGrowlMessageUtility ( m_GrowlUtil ) ; List < ModifiablePropertyModel > list = m_SUT . getProperties ( ) ; assertThat ( list . size ( ) , is ( 0 ) ) ; verify ( m_ConfigWrapper , never ( ) ) . getConfigurationDefaultsByFactoryPidAsync ( CONTROLLER_ID , FACTORY_CONF_NAME ) ; verify ( m_ConfigWrapper , never ( ) ) . getConfigurationByPidAsync ( CONTROLLER_ID , PID ) ; }
Verify nothing happens if factory model is not set
Verify nothing happens if factory model is not set