mil.dod.th.remote.client/test/mil/dod/th/remote/client/generate/impl/TestEventUnregistrationBuilderImpl.java
@Test
    public void testBuild() throws UninitializedMessageException, InvalidProtocolBufferException
    {
        // replay
        TerraHarvestPayload payload = m_SUT.setId(100).build();

        // verify
        EventAdminNamespace namespaceMessage = EventAdminNamespace.parseFrom(payload.getNamespaceMessage());
        UnregisterEventRequestData data = UnregisterEventRequestData.parseFrom(namespaceMessage.getData());
        assertThat(payload.getNamespace(), is(Namespace.EventAdmin));
        assertThat(data.getId(), is(100));
    }
/**
     * Verify that a valid payload message can be generated.
     */
Verify that a valid payload message can be generated.
Verify that a valid payload message can be generated .
@Test
    public void testBuild() throws UninitializedMessageException, InvalidProtocolBufferException
    {
        TerraHarvestPayload payload = m_SUT.setId(100).build();
        EventAdminNamespace namespaceMessage = EventAdminNamespace.parseFrom(payload.getNamespaceMessage());
        UnregisterEventRequestData data = UnregisterEventRequestData.parseFrom(namespaceMessage.getData());
        assertThat(payload.getNamespace(), is(Namespace.EventAdmin));
        assertThat(data.getId(), is(100));
    }
@ Test public void testBuild ( ) throws UninitializedMessageException , InvalidProtocolBufferException { TerraHarvestPayload payload = m_SUT . setId ( 100 ) . build ( ) ; EventAdminNamespace namespaceMessage = EventAdminNamespace . parseFrom ( payload . getNamespaceMessage ( ) ) ; UnregisterEventRequestData data = UnregisterEventRequestData . parseFrom ( namespaceMessage . getData ( ) ) ; assertThat ( payload . getNamespace ( ) , is ( Namespace . EventAdmin ) ) ; assertThat ( data . getId ( ) , is ( 100 ) ) ; }
Verify that a valid payload message can be generated.
Verify that a valid payload message can be generated .
// replay // verify