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