mil.dod.th.remote.client/test/mil/dod/th/remote/client/parse/impl/MessageUtils.java
public static void verifyRemoteMessage(RemoteMessage<?> remoteMessage, Namespace namespace,
        Message namespaceMessage, ProtocolMessageEnum dataMessageType, ByteString dataMessage)
    {
        assertThat(remoteMessage, notNullValue());
        assertThat(remoteMessage.getRawMessage(), notNullValue());
        assertThat(remoteMessage.getNamespace(), is(namespace));
        assertThat(remoteMessage.getNamespaceMessage(), is(namespaceMessage));
        assertThat(remoteMessage.getDataMessageType(), is(dataMessageType));

        if (remoteMessage.getDataMessage() != null)
        {
            assertThat(remoteMessage.getDataMessage().toByteString(), is(dataMessage));
        }

        assertThat(remoteMessage.getDestId(), is(DEST_ID));
        assertThat(remoteMessage.getSrcId(), is(SRC_ID));

        // Verify that these can be called without causing an exception
        remoteMessage.isError();
        remoteMessage.isResponse();
    }
/**
     * Verify the given remote message based on given parameters.
     * 
     * @param remoteMessage
     *      converted message to verify
     * @param namespace
     *      namespace type to compare with
     * @param namespaceMessage
     *      namespace message to compare with
     * @param dataMessageType
     *      data message type to compare with
     * @param dataMessage
     *      data message to compare with
     */
Verify the given remote message based on given parameters.


Verify the given remote message based on given parameters .
public static void verifyRemoteMessage(RemoteMessage<?> remoteMessage, Namespace namespace,
        Message namespaceMessage, ProtocolMessageEnum dataMessageType, ByteString dataMessage)
    {
        assertThat(remoteMessage, notNullValue());
        assertThat(remoteMessage.getRawMessage(), notNullValue());
        assertThat(remoteMessage.getNamespace(), is(namespace));
        assertThat(remoteMessage.getNamespaceMessage(), is(namespaceMessage));
        assertThat(remoteMessage.getDataMessageType(), is(dataMessageType));
        if (remoteMessage.getDataMessage() != null)
        {
            assertThat(remoteMessage.getDataMessage().toByteString(), is(dataMessage));
        }
        assertThat(remoteMessage.getDestId(), is(DEST_ID));
        assertThat(remoteMessage.getSrcId(), is(SRC_ID));
        remoteMessage.isError();
        remoteMessage.isResponse();
    }
public static void verifyRemoteMessage ( RemoteMessage < ? > remoteMessage , Namespace namespace , Message namespaceMessage , ProtocolMessageEnum dataMessageType , ByteString dataMessage ) { assertThat ( remoteMessage , notNullValue ( ) ) ; assertThat ( remoteMessage . getRawMessage ( ) , notNullValue ( ) ) ; assertThat ( remoteMessage . getNamespace ( ) , is ( namespace ) ) ; assertThat ( remoteMessage . getNamespaceMessage ( ) , is ( namespaceMessage ) ) ; assertThat ( remoteMessage . getDataMessageType ( ) , is ( dataMessageType ) ) ; if ( remoteMessage . getDataMessage ( ) != null ) { assertThat ( remoteMessage . getDataMessage ( ) . toByteString ( ) , is ( dataMessage ) ) ; } assertThat ( remoteMessage . getDestId ( ) , is ( DEST_ID ) ) ; assertThat ( remoteMessage . getSrcId ( ) , is ( SRC_ID ) ) ; remoteMessage . isError ( ) ; remoteMessage . isResponse ( ) ; }
Verify the given remote message based on given parameters.
Verify the given remote message based on given parameters .
// Verify that these can be called without causing an exception