mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestFactoryObjectConfigModifierViewImpl.java
@Test
    public void testModifyPropertiesWithoutPid()
    {
        //make sure list is initially empty; 
        List<ModifiablePropertyModel> initialProperties = m_SUT.getProperties();
        assertThat(initialProperties, notNullValue());
        assertThat(initialProperties.size(), is(0));
        
        //mock out configuration wrapper calls; must be mocked after getProperties call
        //so that the list of properties does not contain any items. Mock out wrapper calls
        //here and a subsequent call to getProperties should return the list of properties
        UnmodifiableConfigMetatypeModel model = mockUnmodifiableConfigMetatypeModel();
        
        when(m_ConfigWrapper.getConfigurationByPidAsync(CONTROLLER_ID, PID)).thenReturn(model);
       
        List<ModifiablePropertyModel> list = m_SUT.getProperties();
        
        assertThat(list.size(), is(2));
        
        ModifiablePropertyModel mod1 = list.get(0);
        assertThat(mod1.getKey(), is(m_Property1.getKey()));
        assertThat(mod1.getName(), is(m_Property1.getName()));
        assertThat(mod1.getDescription(), is(m_Property1.getDescription()));
        assertThat(mod1.getValue(), is(m_Property1.getValue()));
        
        ModifiablePropertyModel mod2 = list.get(1);
        assertThat(mod2.getKey(), is(m_Property2.getKey()));
        assertThat(mod2.getName(), is(m_Property2.getName()));
        assertThat(mod2.getDescription(), is(m_Property2.getDescription()));
        assertThat(mod2.getValue(), is(m_Property2.getValue()));
    }
/**
     * Verify that after updating properties that the value in the properties list 
     * has been updated to contain the changed value.
     */
Verify that after updating properties that the value in the properties list
has been updated to contain the changed value.
Verify that after updating properties that the value in the properties list has been updated to contain the changed value .
@Test
    public void testModifyPropertiesWithoutPid()
    {
        List<ModifiablePropertyModel> initialProperties = m_SUT.getProperties();
        assertThat(initialProperties, notNullValue());
        assertThat(initialProperties.size(), is(0));
        UnmodifiableConfigMetatypeModel model = mockUnmodifiableConfigMetatypeModel();
        when(m_ConfigWrapper.getConfigurationByPidAsync(CONTROLLER_ID, PID)).thenReturn(model);
        List<ModifiablePropertyModel> list = m_SUT.getProperties();
        assertThat(list.size(), is(2));
        ModifiablePropertyModel mod1 = list.get(0);
        assertThat(mod1.getKey(), is(m_Property1.getKey()));
        assertThat(mod1.getName(), is(m_Property1.getName()));
        assertThat(mod1.getDescription(), is(m_Property1.getDescription()));
        assertThat(mod1.getValue(), is(m_Property1.getValue()));
        ModifiablePropertyModel mod2 = list.get(1);
        assertThat(mod2.getKey(), is(m_Property2.getKey()));
        assertThat(mod2.getName(), is(m_Property2.getName()));
        assertThat(mod2.getDescription(), is(m_Property2.getDescription()));
        assertThat(mod2.getValue(), is(m_Property2.getValue()));
    }
@ Test public void testModifyPropertiesWithoutPid ( ) { List < ModifiablePropertyModel > initialProperties = m_SUT . getProperties ( ) ; assertThat ( initialProperties , notNullValue ( ) ) ; assertThat ( initialProperties . size ( ) , is ( 0 ) ) ; UnmodifiableConfigMetatypeModel model = mockUnmodifiableConfigMetatypeModel ( ) ; when ( m_ConfigWrapper . getConfigurationByPidAsync ( CONTROLLER_ID , PID ) ) . thenReturn ( model ) ; List < ModifiablePropertyModel > list = m_SUT . getProperties ( ) ; assertThat ( list . size ( ) , is ( 2 ) ) ; ModifiablePropertyModel mod1 = list . get ( 0 ) ; assertThat ( mod1 . getKey ( ) , is ( m_Property1 . getKey ( ) ) ) ; assertThat ( mod1 . getName ( ) , is ( m_Property1 . getName ( ) ) ) ; assertThat ( mod1 . getDescription ( ) , is ( m_Property1 . getDescription ( ) ) ) ; assertThat ( mod1 . getValue ( ) , is ( m_Property1 . getValue ( ) ) ) ; ModifiablePropertyModel mod2 = list . get ( 1 ) ; assertThat ( mod2 . getKey ( ) , is ( m_Property2 . getKey ( ) ) ) ; assertThat ( mod2 . getName ( ) , is ( m_Property2 . getName ( ) ) ) ; assertThat ( mod2 . getDescription ( ) , is ( m_Property2 . getDescription ( ) ) ) ; assertThat ( mod2 . getValue ( ) , is ( m_Property2 . getValue ( ) ) ) ; }
Verify that after updating properties that the value in the properties list
 has been updated to contain the changed value.
Verify that after updating properties that the value in the properties list has been updated to contain the changed value .
//make sure list is initially empty;  //mock out configuration wrapper calls; must be mocked after getProperties call //so that the list of properties does not contain any items. Mock out wrapper calls //here and a subsequent call to getProperties should return the list of properties