mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestAssetNamespace.java
@Test
    public final void testExecuteCommandSet() throws IOException, InterruptedException
    {
        SetPanTiltCommand command = SetPanTiltCommand.newBuilder().
                setBase(BaseTypesGen.Command.getDefaultInstance()).
                setPanTilt(OrientationOffset.newBuilder().
                        setAzimuth(AzimuthDegrees.newBuilder().setValue(20).build()).build()).build();
        
        //send the command
        ExecuteCommandResponseData executeCommandResponse = AssetNamespaceUtils.
                executeCommand(command, 
                        CommandTypeEnumConverter.convertJavaEnumToProto(CommandTypeEnum.SET_PAN_TILT_COMMAND), 
                        testUuid, 
                        socket);

        assertThat(executeCommandResponse.getResponseType(), is(
                CommandResponseEnumConverter.convertJavaEnumToProto(CommandResponseEnum.SET_PAN_TILT_RESPONSE)));
        assertThat(executeCommandResponse.getUuid(), is(testUuid));                
        
        SetPanTiltResponse commandResponse = SetPanTiltResponse.parseFrom(executeCommandResponse.getResponse());
        assertThat(commandResponse, is(notNullValue()));
    }
/**
     * Verifies ability to execute a command remotely and get the response.
     * 
     * Test a set command.
     */
Verifies ability to execute a command remotely and get the response.

Test a set command.
Verifies ability to execute a command remotely and get the response . Test a set command .
@Test
    public final void testExecuteCommandSet() throws IOException, InterruptedException
    {
        SetPanTiltCommand command = SetPanTiltCommand.newBuilder().
                setBase(BaseTypesGen.Command.getDefaultInstance()).
                setPanTilt(OrientationOffset.newBuilder().
                        setAzimuth(AzimuthDegrees.newBuilder().setValue(20).build()).build()).build();
        ExecuteCommandResponseData executeCommandResponse = AssetNamespaceUtils.
                executeCommand(command, 
                        CommandTypeEnumConverter.convertJavaEnumToProto(CommandTypeEnum.SET_PAN_TILT_COMMAND), 
                        testUuid, 
                        socket);
        assertThat(executeCommandResponse.getResponseType(), is(
                CommandResponseEnumConverter.convertJavaEnumToProto(CommandResponseEnum.SET_PAN_TILT_RESPONSE)));
        assertThat(executeCommandResponse.getUuid(), is(testUuid));                
        SetPanTiltResponse commandResponse = SetPanTiltResponse.parseFrom(executeCommandResponse.getResponse());
        assertThat(commandResponse, is(notNullValue()));
    }
@ Test public final void testExecuteCommandSet ( ) throws IOException , InterruptedException { SetPanTiltCommand command = SetPanTiltCommand . newBuilder ( ) . setBase ( BaseTypesGen . Command . getDefaultInstance ( ) ) . setPanTilt ( OrientationOffset . newBuilder ( ) . setAzimuth ( AzimuthDegrees . newBuilder ( ) . setValue ( 20 ) . build ( ) ) . build ( ) ) . build ( ) ; ExecuteCommandResponseData executeCommandResponse = AssetNamespaceUtils . executeCommand ( command , CommandTypeEnumConverter . convertJavaEnumToProto ( CommandTypeEnum . SET_PAN_TILT_COMMAND ) , testUuid , socket ) ; assertThat ( executeCommandResponse . getResponseType ( ) , is ( CommandResponseEnumConverter . convertJavaEnumToProto ( CommandResponseEnum . SET_PAN_TILT_RESPONSE ) ) ) ; assertThat ( executeCommandResponse . getUuid ( ) , is ( testUuid ) ) ; SetPanTiltResponse commandResponse = SetPanTiltResponse . parseFrom ( executeCommandResponse . getResponse ( ) ) ; assertThat ( commandResponse , is ( notNullValue ( ) ) ) ; }
Verifies ability to execute a command remotely and get the response.
Verifies ability to execute a command remotely and get the response .
//send the command