mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestControllerConfigurationMgrImpl.java
private void createConfigModelInformation()
    {
        UnmodifiableConfigMetatypeModel config = new UnmodifiableConfigMetatypeModel("some PID");
        ConfigPropModelImpl prop1 = ModelFactory.createPropModel("key1", "value1");
        ConfigPropModelImpl prop2 = ModelFactory.createPropModel("key2", "value2");
        config.getProperties().add(prop1);
        config.getProperties().add(prop2);
        
        UnmodifiableConfigMetatypeModel config2 = new UnmodifiableConfigMetatypeModel("some PID 2");
        config2.getProperties().add(prop1);
        config2.getProperties().add(prop2);
        
        //Mock information returned from meta type and configuration system managers.
        when(m_ConfigWrapper.getConfigurationByPidAsync(25, "some PID")).thenReturn(config);
        when(m_ConfigWrapper.getConfigurationByPidAsync(25, "some PID 2")).thenReturn(config2);
    }
/**
     * Method that creates mocked configuration model information.
     */
Method that creates mocked configuration model information.
Method that creates mocked configuration model information .
private void createConfigModelInformation()
    {
        UnmodifiableConfigMetatypeModel config = new UnmodifiableConfigMetatypeModel("some PID");
        ConfigPropModelImpl prop1 = ModelFactory.createPropModel("key1", "value1");
        ConfigPropModelImpl prop2 = ModelFactory.createPropModel("key2", "value2");
        config.getProperties().add(prop1);
        config.getProperties().add(prop2);
        UnmodifiableConfigMetatypeModel config2 = new UnmodifiableConfigMetatypeModel("some PID 2");
        config2.getProperties().add(prop1);
        config2.getProperties().add(prop2);
        when(m_ConfigWrapper.getConfigurationByPidAsync(25, "some PID")).thenReturn(config);
        when(m_ConfigWrapper.getConfigurationByPidAsync(25, "some PID 2")).thenReturn(config2);
    }
private void createConfigModelInformation ( ) { UnmodifiableConfigMetatypeModel config = new UnmodifiableConfigMetatypeModel ( "some PID" ) ; ConfigPropModelImpl prop1 = ModelFactory . createPropModel ( "key1" , "value1" ) ; ConfigPropModelImpl prop2 = ModelFactory . createPropModel ( "key2" , "value2" ) ; config . getProperties ( ) . add ( prop1 ) ; config . getProperties ( ) . add ( prop2 ) ; UnmodifiableConfigMetatypeModel config2 = new UnmodifiableConfigMetatypeModel ( "some PID 2" ) ; config2 . getProperties ( ) . add ( prop1 ) ; config2 . getProperties ( ) . add ( prop2 ) ; when ( m_ConfigWrapper . getConfigurationByPidAsync ( 25 , "some PID" ) ) . thenReturn ( config ) ; when ( m_ConfigWrapper . getConfigurationByPidAsync ( 25 , "some PID 2" ) ) . thenReturn ( config2 ) ; }
Method that creates mocked configuration model information.
Method that creates mocked configuration model information .
//Mock information returned from meta type and configuration system managers.