mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/TerraHarvestMessageHelper.java
public static TerraHarvestMessage createTerraHarvestMessage(final int sourceId, final int destId,
        final Namespace namespace, final int messageId, final Message message)
    {
        TerraHarvestPayload payLoad = TerraHarvestPayload.newBuilder().setNamespace(namespace).
            setNamespaceMessage(message.toByteString()).build();
        TerraHarvestMessage thMessage = TerraHarvestMessageUtil.getPartialMessage().
            setSourceId(sourceId).
            setDestId(destId).
            setTerraHarvestPayload(payLoad.toByteString()).
            setMessageId(messageId).
            build();

        //return the message
        return thMessage;
    }
/**
     * Create a valid terra harvest message.
     * @param sourceId
     *     the source id desired
     * @param destId
     *     the destination id desired
     * @param namespace
     *     the namespace this terra harvest message is representing
     * @param messageId
     *     the desired message id
     * @param message
     *     the namespace message to insert
     * @return
     *     a valid terra harvest message
     */
Create a valid terra harvest message.
Create a valid terra harvest message .
public static TerraHarvestMessage createTerraHarvestMessage(final int sourceId, final int destId,
        final Namespace namespace, final int messageId, final Message message)
    {
        TerraHarvestPayload payLoad = TerraHarvestPayload.newBuilder().setNamespace(namespace).
            setNamespaceMessage(message.toByteString()).build();
        TerraHarvestMessage thMessage = TerraHarvestMessageUtil.getPartialMessage().
            setSourceId(sourceId).
            setDestId(destId).
            setTerraHarvestPayload(payLoad.toByteString()).
            setMessageId(messageId).
            build();
        return thMessage;
    }
public static TerraHarvestMessage createTerraHarvestMessage ( final int sourceId , final int destId , final Namespace namespace , final int messageId , final Message message ) { TerraHarvestPayload payLoad = TerraHarvestPayload . newBuilder ( ) . setNamespace ( namespace ) . setNamespaceMessage ( message . toByteString ( ) ) . build ( ) ; TerraHarvestMessage thMessage = TerraHarvestMessageUtil . getPartialMessage ( ) . setSourceId ( sourceId ) . setDestId ( destId ) . setTerraHarvestPayload ( payLoad . toByteString ( ) ) . setMessageId ( messageId ) . build ( ) ; return thMessage ; }
Create a valid terra harvest message.
Create a valid terra harvest message .
//return the message