mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestBaseNamespace.java
@Test
    public void testRequestControllerInfo() throws IOException, InterruptedException
    {
        MessageListener listener = new MessageListener(socket);
        
        // send out message
        TerraHarvestMessage request = TerraHarvestMessageHelper.createRequestControllerInfoMsg();
        request.writeDelimitedTo(socket.getOutputStream());

        // read in response
        Message response = listener.waitForMessage(Namespace.Base, 
                BaseMessageType.ControllerInfo, 300); 
        BaseNamespace namespaceResponse = (BaseNamespace)response;
        assertThat(namespaceResponse, is(notNullValue()));

        ControllerInfoData systemInfo = ControllerInfoData.parseFrom(namespaceResponse.getData());
        assertThat(systemInfo.getName(), is(notNullValue()));
        assertThat(systemInfo.getBuildInfoCount(), greaterThan(0));
        assertThat(systemInfo.getCurrentSystemTime(), is(notNullValue()));
    }
/**
     * Verify sending a controller info request message returns with controller info 
     */
Verify sending a controller info request message returns with controller info
Verify sending a controller info request message returns with controller info
@Test
    public void testRequestControllerInfo() throws IOException, InterruptedException
    {
        MessageListener listener = new MessageListener(socket);
        TerraHarvestMessage request = TerraHarvestMessageHelper.createRequestControllerInfoMsg();
        request.writeDelimitedTo(socket.getOutputStream());
        Message response = listener.waitForMessage(Namespace.Base, 
                BaseMessageType.ControllerInfo, 300); 
        BaseNamespace namespaceResponse = (BaseNamespace)response;
        assertThat(namespaceResponse, is(notNullValue()));
        ControllerInfoData systemInfo = ControllerInfoData.parseFrom(namespaceResponse.getData());
        assertThat(systemInfo.getName(), is(notNullValue()));
        assertThat(systemInfo.getBuildInfoCount(), greaterThan(0));
        assertThat(systemInfo.getCurrentSystemTime(), is(notNullValue()));
    }
@ Test public void testRequestControllerInfo ( ) throws IOException , InterruptedException { MessageListener listener = new MessageListener ( socket ) ; TerraHarvestMessage request = TerraHarvestMessageHelper . createRequestControllerInfoMsg ( ) ; request . writeDelimitedTo ( socket . getOutputStream ( ) ) ; Message response = listener . waitForMessage ( Namespace . Base , BaseMessageType . ControllerInfo , 300 ) ; BaseNamespace namespaceResponse = ( BaseNamespace ) response ; assertThat ( namespaceResponse , is ( notNullValue ( ) ) ) ; ControllerInfoData systemInfo = ControllerInfoData . parseFrom ( namespaceResponse . getData ( ) ) ; assertThat ( systemInfo . getName ( ) , is ( notNullValue ( ) ) ) ; assertThat ( systemInfo . getBuildInfoCount ( ) , greaterThan ( 0 ) ) ; assertThat ( systemInfo . getCurrentSystemTime ( ) , is ( notNullValue ( ) ) ) ; }
Verify sending a controller info request message returns with controller info
Verify sending a controller info request message returns with controller info
// send out message // read in response