mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestControllerConfigurationMgrImpl.java
@Test
    public void testSetConfigurationValues()
    {     
        //Set up the display model to be sent to the method.
        ModifiableConfigMetatypeModel displayModel = new ModifiableConfigMetatypeModel("some PID");
        ConfigPropModelImpl displayProp1 = ModelFactory.createPropModel("test1", "value1");
        ConfigPropModelImpl displayProp2 = ModelFactory.createPropModel("test2", "value2");
        ConfigPropModelImpl displayProp3 = ModelFactory.createPropModel("test3", "value3");
        ConfigPropModelImpl displayProp4 = ModelFactory.createPropModel("test4", "value4");
        
        displayModel.getProperties().add(displayProp1);
        displayModel.getProperties().add(displayProp2);
        displayModel.getProperties().add(displayProp3);
        displayModel.getProperties().add(displayProp4);

        //Replay a configuration being returned from the view so that changed values may be set.
        m_SUT.setConfigurationValuesAsync(25, displayModel);
        
        //Verify that the configuration wrappers setConfigurationValue method is called for each property.
        verify(m_ConfigWrapper).setConfigurationValueAsync(eq(25), eq("some PID"), eq(displayModel.getProperties()));
    }
/**
     * Test the set configuration values method.
     * Verify that only changed values are set.
     */
Test the set configuration values method.
Verify that only changed values are set.
Test the set configuration values method . Verify that only changed values are set .
@Test
    public void testSetConfigurationValues()
    {     
        ModifiableConfigMetatypeModel displayModel = new ModifiableConfigMetatypeModel("some PID");
        ConfigPropModelImpl displayProp1 = ModelFactory.createPropModel("test1", "value1");
        ConfigPropModelImpl displayProp2 = ModelFactory.createPropModel("test2", "value2");
        ConfigPropModelImpl displayProp3 = ModelFactory.createPropModel("test3", "value3");
        ConfigPropModelImpl displayProp4 = ModelFactory.createPropModel("test4", "value4");
        displayModel.getProperties().add(displayProp1);
        displayModel.getProperties().add(displayProp2);
        displayModel.getProperties().add(displayProp3);
        displayModel.getProperties().add(displayProp4);
        m_SUT.setConfigurationValuesAsync(25, displayModel);
        verify(m_ConfigWrapper).setConfigurationValueAsync(eq(25), eq("some PID"), eq(displayModel.getProperties()));
    }
@ Test public void testSetConfigurationValues ( ) { ModifiableConfigMetatypeModel displayModel = new ModifiableConfigMetatypeModel ( "some PID" ) ; ConfigPropModelImpl displayProp1 = ModelFactory . createPropModel ( "test1" , "value1" ) ; ConfigPropModelImpl displayProp2 = ModelFactory . createPropModel ( "test2" , "value2" ) ; ConfigPropModelImpl displayProp3 = ModelFactory . createPropModel ( "test3" , "value3" ) ; ConfigPropModelImpl displayProp4 = ModelFactory . createPropModel ( "test4" , "value4" ) ; displayModel . getProperties ( ) . add ( displayProp1 ) ; displayModel . getProperties ( ) . add ( displayProp2 ) ; displayModel . getProperties ( ) . add ( displayProp3 ) ; displayModel . getProperties ( ) . add ( displayProp4 ) ; m_SUT . setConfigurationValuesAsync ( 25 , displayModel ) ; verify ( m_ConfigWrapper ) . setConfigurationValueAsync ( eq ( 25 ) , eq ( "some PID" ) , eq ( displayModel . getProperties ( ) ) ) ; }
Test the set configuration values method.
Test the set configuration values method .
//Set up the display model to be sent to the method. //Replay a configuration being returned from the view so that changed values may be set. //Verify that the configuration wrappers setConfigurationValue method is called for each property.