mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestSystemConfigurationImpl.java
@Test
    public void testGetPropertiesByPid() throws SecurityException, IllegalArgumentException, 
        NoSuchFieldException, IllegalAccessException
    {
        setupConfigurations();
        
        List<ConfigAdminPropertyModel> props = m_SUT.getPropertiesByPidAsync(25, "factory config 2");
        
        assertThat(props.size(), is(2));
        
        ConfigAdminPropertyModel property = props.get(0);
        assertThat(property.getKey(), is("key1"));
        assertThat(property.getValue(), is((Object)"value1"));
        
        property = props.get(1);
        assertThat(property.getKey(), is("key2"));
        assertThat(property.getValue(), is((Object)1500));
        
        //Verify that null is returned if no properties for the specified PID can be found.
        assertThat(m_SUT.getPropertiesByPidAsync(25, "nada"), is(nullValue()));
    }
/**
     * Test the get properties by pid method.
     * Verify that the list returned contains all properties for the specified configuration.
     */
Test the get properties by pid method.
Verify that the list returned contains all properties for the specified configuration.
Test the get properties by pid method . Verify that the list returned contains all properties for the specified configuration .
@Test
    public void testGetPropertiesByPid() throws SecurityException, IllegalArgumentException, 
        NoSuchFieldException, IllegalAccessException
    {
        setupConfigurations();
        List<ConfigAdminPropertyModel> props = m_SUT.getPropertiesByPidAsync(25, "factory config 2");
        assertThat(props.size(), is(2));
        ConfigAdminPropertyModel property = props.get(0);
        assertThat(property.getKey(), is("key1"));
        assertThat(property.getValue(), is((Object)"value1"));
        property = props.get(1);
        assertThat(property.getKey(), is("key2"));
        assertThat(property.getValue(), is((Object)1500));
        assertThat(m_SUT.getPropertiesByPidAsync(25, "nada"), is(nullValue()));
    }
@ Test public void testGetPropertiesByPid ( ) throws SecurityException , IllegalArgumentException , NoSuchFieldException , IllegalAccessException { setupConfigurations ( ) ; List < ConfigAdminPropertyModel > props = m_SUT . getPropertiesByPidAsync ( 25 , "factory config 2" ) ; assertThat ( props . size ( ) , is ( 2 ) ) ; ConfigAdminPropertyModel property = props . get ( 0 ) ; assertThat ( property . getKey ( ) , is ( "key1" ) ) ; assertThat ( property . getValue ( ) , is ( ( Object ) "value1" ) ) ; property = props . get ( 1 ) ; assertThat ( property . getKey ( ) , is ( "key2" ) ) ; assertThat ( property . getValue ( ) , is ( ( Object ) 1500 ) ) ; assertThat ( m_SUT . getPropertiesByPidAsync ( 25 , "nada" ) , is ( nullValue ( ) ) ) ; }
Test the get properties by pid method.
Test the get properties by pid method .
//Verify that null is returned if no properties for the specified PID can be found.