mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestFactoryObjectConfigModifierViewImpl.java
private FactoryBaseModel mockFactoryBaseModel()
    {
        FactoryBaseModel model = mock(FactoryBaseModel.class);
        
        when(model.getControllerId()).thenReturn(CONTROLLER_ID);
        when(model.getFactoryPid()).thenReturn(FACTORY_CONF_NAME);
        when(model.getPid()).thenReturn(PID);
        when(model.getFactoryManager()).thenReturn(m_FactoryMgr);
        
        return model;
    }
/**
     * Create a mocked factory base model.
     * @return
     *  the mocked object
     */
Create a mocked factory base model.
@return
the mocked object
Create a mocked factory base model . @return the mocked object
private FactoryBaseModel mockFactoryBaseModel()
    {
        FactoryBaseModel model = mock(FactoryBaseModel.class);
        when(model.getControllerId()).thenReturn(CONTROLLER_ID);
        when(model.getFactoryPid()).thenReturn(FACTORY_CONF_NAME);
        when(model.getPid()).thenReturn(PID);
        when(model.getFactoryManager()).thenReturn(m_FactoryMgr);
        return model;
    }
private FactoryBaseModel mockFactoryBaseModel ( ) { FactoryBaseModel model = mock ( FactoryBaseModel . class ) ; when ( model . getControllerId ( ) ) . thenReturn ( CONTROLLER_ID ) ; when ( model . getFactoryPid ( ) ) . thenReturn ( FACTORY_CONF_NAME ) ; when ( model . getPid ( ) ) . thenReturn ( PID ) ; when ( model . getFactoryManager ( ) ) . thenReturn ( m_FactoryMgr ) ; return model ; }
Create a mocked factory base model.
Create a mocked factory base model .