mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestControllerConfigurationMgrImpl.java
@Test
    public void testGetConfigurationBundleLocationAsync()
    {
        //Set up the display model to be sent to the method.
        ConfigAdminModel model = mock(ConfigAdminModel.class);
        when(model.getBundleLocation()).thenReturn("bLocation");
        when(m_SysConfigMgr.getConfigurationByPidAsync(25, "some PID")).thenReturn(model);
        
        String location = m_SUT.getConfigBundleLocationAsync(111, "some PID");
        
        assertThat(location, nullValue());
        
        location = m_SUT.getConfigBundleLocationAsync(25, "some PID");
        assertThat(location, is("bLocation"));
    }
/**
     * Verify that a bundle location can be properly retrieved. 
     */
Verify that a bundle location can be properly retrieved.
Verify that a bundle location can be properly retrieved .
@Test
    public void testGetConfigurationBundleLocationAsync()
    {
        ConfigAdminModel model = mock(ConfigAdminModel.class);
        when(model.getBundleLocation()).thenReturn("bLocation");
        when(m_SysConfigMgr.getConfigurationByPidAsync(25, "some PID")).thenReturn(model);
        String location = m_SUT.getConfigBundleLocationAsync(111, "some PID");
        assertThat(location, nullValue());
        location = m_SUT.getConfigBundleLocationAsync(25, "some PID");
        assertThat(location, is("bLocation"));
    }
@ Test public void testGetConfigurationBundleLocationAsync ( ) { ConfigAdminModel model = mock ( ConfigAdminModel . class ) ; when ( model . getBundleLocation ( ) ) . thenReturn ( "bLocation" ) ; when ( m_SysConfigMgr . getConfigurationByPidAsync ( 25 , "some PID" ) ) . thenReturn ( model ) ; String location = m_SUT . getConfigBundleLocationAsync ( 111 , "some PID" ) ; assertThat ( location , nullValue ( ) ) ; location = m_SUT . getConfigBundleLocationAsync ( 25 , "some PID" ) ; assertThat ( location , is ( "bLocation" ) ) ; }
Verify that a bundle location can be properly retrieved.
Verify that a bundle location can be properly retrieved .
//Set up the display model to be sent to the method.