mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestSystemConfigurationImpl.java
@Test
    public void testGetConfigurationByPid() throws SecurityException, IllegalArgumentException, NoSuchFieldException, 
        IllegalAccessException
    {
        setupConfigurations();
        
        //Verify that a standard configuration is returned.
        ConfigAdminModel returned = m_SUT.getConfigurationByPidAsync(25, "some PID");
        assertThat(returned.getBundleLocation(), is("another location"));
        assertThat(returned.getPid(), is("some PID"));
        assertThat(returned.getFactoryPid(), is(nullValue()));
        
        //Verify that the correct factory configuration is returned.
        returned = m_SUT.getConfigurationByPidAsync(25, "factory config 1");
        assertThat(returned.getBundleLocation(), is("location"));
        assertThat(returned.getPid(), is("factory config 1"));
        assertThat(returned.getFactoryPid(), is("factory PID"));
        
        //Verify null is returned if the pid does not exist within the list.
        assertThat(m_SUT.getConfigurationByPidAsync(25, "non-existent PID"), is(nullValue()));
    }
/**
     * Test getting a configuration by pid.
     * Verify that the correct configuration is returned.
     * Verify that the correct factory configuration is returned.
     * Verify null is returned if the configuration with the specified pid cannot be found.
     */
Test getting a configuration by pid.
Verify that the correct configuration is returned.
Verify that the correct factory configuration is returned.
Verify null is returned if the configuration with the specified pid cannot be found.
Test getting a configuration by pid . Verify that the correct configuration is returned . Verify that the correct factory configuration is returned . Verify null is returned if the configuration with the specified pid cannot be found .
@Test
    public void testGetConfigurationByPid() throws SecurityException, IllegalArgumentException, NoSuchFieldException, 
        IllegalAccessException
    {
        setupConfigurations();
        ConfigAdminModel returned = m_SUT.getConfigurationByPidAsync(25, "some PID");
        assertThat(returned.getBundleLocation(), is("another location"));
        assertThat(returned.getPid(), is("some PID"));
        assertThat(returned.getFactoryPid(), is(nullValue()));
        returned = m_SUT.getConfigurationByPidAsync(25, "factory config 1");
        assertThat(returned.getBundleLocation(), is("location"));
        assertThat(returned.getPid(), is("factory config 1"));
        assertThat(returned.getFactoryPid(), is("factory PID"));
        assertThat(m_SUT.getConfigurationByPidAsync(25, "non-existent PID"), is(nullValue()));
    }
@ Test public void testGetConfigurationByPid ( ) throws SecurityException , IllegalArgumentException , NoSuchFieldException , IllegalAccessException { setupConfigurations ( ) ; ConfigAdminModel returned = m_SUT . getConfigurationByPidAsync ( 25 , "some PID" ) ; assertThat ( returned . getBundleLocation ( ) , is ( "another location" ) ) ; assertThat ( returned . getPid ( ) , is ( "some PID" ) ) ; assertThat ( returned . getFactoryPid ( ) , is ( nullValue ( ) ) ) ; returned = m_SUT . getConfigurationByPidAsync ( 25 , "factory config 1" ) ; assertThat ( returned . getBundleLocation ( ) , is ( "location" ) ) ; assertThat ( returned . getPid ( ) , is ( "factory config 1" ) ) ; assertThat ( returned . getFactoryPid ( ) , is ( "factory PID" ) ) ; assertThat ( m_SUT . getConfigurationByPidAsync ( 25 , "non-existent PID" ) , is ( nullValue ( ) ) ) ; }
Test getting a configuration by pid.
Test getting a configuration by pid .
//Verify that a standard configuration is returned. //Verify that the correct factory configuration is returned. //Verify null is returned if the pid does not exist within the list.