mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestSystemConfigurationImpl.java
@Test
    public void testRemoveConfiguration()
    {
        m_SUT.removeConfigurationAsync(25, "test pid");
        
        ArgumentCaptor<DeleteConfigurationRequestData> messageCaptor = 
                ArgumentCaptor.forClass(DeleteConfigurationRequestData.class);
        
        verify(m_MessageFactory).createConfigAdminMessage(eq(ConfigAdminMessageType.DeleteConfigurationRequest), 
                messageCaptor.capture());
        verify(m_MessageWrapper).queue(eq(25), eq((ResponseHandler)null));
        
        DeleteConfigurationRequestData message = messageCaptor.getValue();
        assertThat(message.getPid(), is("test pid"));
    }
/**
     * Test the remove configuration method.
     * Verify that the remote message sender is called with the appropriate values.
     */
Test the remove configuration method.
Verify that the remote message sender is called with the appropriate values.
Test the remove configuration method . Verify that the remote message sender is called with the appropriate values .
@Test
    public void testRemoveConfiguration()
    {
        m_SUT.removeConfigurationAsync(25, "test pid");
        ArgumentCaptor<DeleteConfigurationRequestData> messageCaptor = 
                ArgumentCaptor.forClass(DeleteConfigurationRequestData.class);
        verify(m_MessageFactory).createConfigAdminMessage(eq(ConfigAdminMessageType.DeleteConfigurationRequest), 
                messageCaptor.capture());
        verify(m_MessageWrapper).queue(eq(25), eq((ResponseHandler)null));
        DeleteConfigurationRequestData message = messageCaptor.getValue();
        assertThat(message.getPid(), is("test pid"));
    }
@ Test public void testRemoveConfiguration ( ) { m_SUT . removeConfigurationAsync ( 25 , "test pid" ) ; ArgumentCaptor < DeleteConfigurationRequestData > messageCaptor = ArgumentCaptor . forClass ( DeleteConfigurationRequestData . class ) ; verify ( m_MessageFactory ) . createConfigAdminMessage ( eq ( ConfigAdminMessageType . DeleteConfigurationRequest ) , messageCaptor . capture ( ) ) ; verify ( m_MessageWrapper ) . queue ( eq ( 25 ) , eq ( ( ResponseHandler ) null ) ) ; DeleteConfigurationRequestData message = messageCaptor . getValue ( ) ; assertThat ( message . getPid ( ) , is ( "test pid" ) ) ; }
Test the remove configuration method.
Test the remove configuration method .