mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/TestTerraHarvestMessageUtil.java
@Test
    public void testGetPartialMessage()
    {
        // get partial message, set necessary fields and build
        //build a TerraHarvestPayLoad message
        final TerraHarvestPayload payLoad = TerraHarvestPayload.newBuilder().
                setNamespace(Namespace.Base).
                setNamespaceMessage(ByteString.EMPTY).
                build();
        TerraHarvestMessage message = TerraHarvestMessageUtil.getPartialMessage()
                .setSourceId(0)
                .setDestId(1)
                .setMessageId(2)
                .setTerraHarvestPayload(payLoad.toByteString())
                .build();
        
        assertThat(message.getVersion(), is(RemoteConstants.SPEC_VERSION));
    }
/**
     * Test utility method to verify basic info is filled out (really, just the spec version).
     */
Test utility method to verify basic info is filled out (really, just the spec version).
Test utility method to verify basic info is filled out ( really just the spec version ) .
@Test
    public void testGetPartialMessage()
    {
        final TerraHarvestPayload payLoad = TerraHarvestPayload.newBuilder().
                setNamespace(Namespace.Base).
                setNamespaceMessage(ByteString.EMPTY).
                build();
        TerraHarvestMessage message = TerraHarvestMessageUtil.getPartialMessage()
                .setSourceId(0)
                .setDestId(1)
                .setMessageId(2)
                .setTerraHarvestPayload(payLoad.toByteString())
                .build();
        assertThat(message.getVersion(), is(RemoteConstants.SPEC_VERSION));
    }
@ Test public void testGetPartialMessage ( ) { final TerraHarvestPayload payLoad = TerraHarvestPayload . newBuilder ( ) . setNamespace ( Namespace . Base ) . setNamespaceMessage ( ByteString . EMPTY ) . build ( ) ; TerraHarvestMessage message = TerraHarvestMessageUtil . getPartialMessage ( ) . setSourceId ( 0 ) . setDestId ( 1 ) . setMessageId ( 2 ) . setTerraHarvestPayload ( payLoad . toByteString ( ) ) . build ( ) ; assertThat ( message . getVersion ( ) , is ( RemoteConstants . SPEC_VERSION ) ) ; }
Test utility method to verify basic info is filled out (really, just the spec version).
Test utility method to verify basic info is filled out ( really just the spec version ) .
// get partial message, set necessary fields and build //build a TerraHarvestPayLoad message