mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestSystemConfigurationImpl.java
@Test
    public void testGetConfigurations()
    {
        assertThat(m_SUT.getConfigurationsAsync(25), is(notNullValue()));
        
        ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class);
        
        verify(m_MessageFactory).createConfigAdminMessage(
            eq(ConfigAdminMessageType.GetConfigurationInfoRequest), 
                messageCaptor.capture());
        verify(m_MessageWrapper, times(2)).queue(eq(25), Mockito.any(ResponseHandler.class));
        
        verify(m_MessageFactory).createEventAdminMessage(eq(EventAdminMessageType.EventRegistrationRequest), 
                messageCaptor.capture());
        verify(m_MessageWrapper, times(2)).queue(eq(25), 
            Mockito.any(RegisterEventsResponseHandler.class));
        
        GetConfigurationInfoRequestData configInfoRequest = 
                (GetConfigurationInfoRequestData)messageCaptor.getAllValues().get(0);
        
        EventRegistrationRequestData registrationRequest = 
                (EventRegistrationRequestData)messageCaptor.getAllValues().get(1);
        
        assertThat(configInfoRequest.hasFilter(), is(false));
        
        assertThat(registrationRequest.getTopic(0), is(ConfigurationEventConstants.TOPIC_ALL_CONFIGURATION_EVENTS));
    }
/**
     * Test the get configurations method.
     * Verify the calls made to the remote message sender if the controller is not known.
     */
Test the get configurations method.
Verify the calls made to the remote message sender if the controller is not known.
Test the get configurations method . Verify the calls made to the remote message sender if the controller is not known .
@Test
    public void testGetConfigurations()
    {
        assertThat(m_SUT.getConfigurationsAsync(25), is(notNullValue()));
        ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class);
        verify(m_MessageFactory).createConfigAdminMessage(
            eq(ConfigAdminMessageType.GetConfigurationInfoRequest), 
                messageCaptor.capture());
        verify(m_MessageWrapper, times(2)).queue(eq(25), Mockito.any(ResponseHandler.class));
        verify(m_MessageFactory).createEventAdminMessage(eq(EventAdminMessageType.EventRegistrationRequest), 
                messageCaptor.capture());
        verify(m_MessageWrapper, times(2)).queue(eq(25), 
            Mockito.any(RegisterEventsResponseHandler.class));
        GetConfigurationInfoRequestData configInfoRequest = 
                (GetConfigurationInfoRequestData)messageCaptor.getAllValues().get(0);
        EventRegistrationRequestData registrationRequest = 
                (EventRegistrationRequestData)messageCaptor.getAllValues().get(1);
        assertThat(configInfoRequest.hasFilter(), is(false));
        assertThat(registrationRequest.getTopic(0), is(ConfigurationEventConstants.TOPIC_ALL_CONFIGURATION_EVENTS));
    }
@ Test public void testGetConfigurations ( ) { assertThat ( m_SUT . getConfigurationsAsync ( 25 ) , is ( notNullValue ( ) ) ) ; ArgumentCaptor < Message > messageCaptor = ArgumentCaptor . forClass ( Message . class ) ; verify ( m_MessageFactory ) . createConfigAdminMessage ( eq ( ConfigAdminMessageType . GetConfigurationInfoRequest ) , messageCaptor . capture ( ) ) ; verify ( m_MessageWrapper , times ( 2 ) ) . queue ( eq ( 25 ) , Mockito . any ( ResponseHandler . class ) ) ; verify ( m_MessageFactory ) . createEventAdminMessage ( eq ( EventAdminMessageType . EventRegistrationRequest ) , messageCaptor . capture ( ) ) ; verify ( m_MessageWrapper , times ( 2 ) ) . queue ( eq ( 25 ) , Mockito . any ( RegisterEventsResponseHandler . class ) ) ; GetConfigurationInfoRequestData configInfoRequest = ( GetConfigurationInfoRequestData ) messageCaptor . getAllValues ( ) . get ( 0 ) ; EventRegistrationRequestData registrationRequest = ( EventRegistrationRequestData ) messageCaptor . getAllValues ( ) . get ( 1 ) ; assertThat ( configInfoRequest . hasFilter ( ) , is ( false ) ) ; assertThat ( registrationRequest . getTopic ( 0 ) , is ( ConfigurationEventConstants . TOPIC_ALL_CONFIGURATION_EVENTS ) ) ; }
Test the get configurations method.
Test the get configurations method .