mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/TerraHarvestMessageHelper.java
public static TerraHarvestMessage createTerraHarvestMessage(final int sourceId, final int destId,
        final Namespace namespace, final int messageId, final Message message)
    {
        final TerraHarvestPayload payload = TerraHarvestPayload.newBuilder().
                setNamespace(namespace).
                setNamespaceMessage(message.toByteString()).
                build();
        TerraHarvestMessage thMessage = TerraHarvestMessage.newBuilder().
            setVersion(RemoteConstants.SPEC_VERSION).
            setSourceId(sourceId).
            setDestId(destId).
            setMessageId(messageId).
            setTerraHarvestPayload(payload.toByteString()).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)
    {
        final TerraHarvestPayload payload = TerraHarvestPayload.newBuilder().
                setNamespace(namespace).
                setNamespaceMessage(message.toByteString()).
                build();
        TerraHarvestMessage thMessage = TerraHarvestMessage.newBuilder().
            setVersion(RemoteConstants.SPEC_VERSION).
            setSourceId(sourceId).
            setDestId(destId).
            setMessageId(messageId).
            setTerraHarvestPayload(payload.toByteString()).build();
        return thMessage;
    }
public static TerraHarvestMessage createTerraHarvestMessage ( final int sourceId , final int destId , final Namespace namespace , final int messageId , final Message message ) { final TerraHarvestPayload payload = TerraHarvestPayload . newBuilder ( ) . setNamespace ( namespace ) . setNamespaceMessage ( message . toByteString ( ) ) . build ( ) ; TerraHarvestMessage thMessage = TerraHarvestMessage . newBuilder ( ) . setVersion ( RemoteConstants . SPEC_VERSION ) . setSourceId ( sourceId ) . setDestId ( destId ) . setMessageId ( messageId ) . setTerraHarvestPayload ( payload . toByteString ( ) ) . build ( ) ; return thMessage ; }
Create a valid terra harvest message.
Create a valid terra harvest message .
//return the message