mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestMissionProgrammingNamespace.java
@Test
    public void testUnregisterEventHandlers() throws IOException, InterruptedException
    {
        MessageListener listener = new MessageListener(m_Socket);
        
        //request
        TerraHarvestMessage message = createMissionProgramMessage(
                MissionProgrammingMessageType.UnregisterEventHandlerRequest, null);
        
        message.writeDelimitedTo(m_Socket.getOutputStream());
        
        //there is no data message so only need to verify response
        listener.waitForMessage( Namespace.MissionProgramming, 
                MissionProgrammingMessageType.UnregisterEventHandlerResponse, 500);
    }
/**
     * Send a request to unregister all event handlers.
     * Verify response is sent back.
     */
Send a request to unregister all event handlers.
Verify response is sent back.
Send a request to unregister all event handlers . Verify response is sent back .
@Test
    public void testUnregisterEventHandlers() throws IOException, InterruptedException
    {
        MessageListener listener = new MessageListener(m_Socket);
        TerraHarvestMessage message = createMissionProgramMessage(
                MissionProgrammingMessageType.UnregisterEventHandlerRequest, null);
        message.writeDelimitedTo(m_Socket.getOutputStream());
        listener.waitForMessage( Namespace.MissionProgramming, 
                MissionProgrammingMessageType.UnregisterEventHandlerResponse, 500);
    }
@ Test public void testUnregisterEventHandlers ( ) throws IOException , InterruptedException { MessageListener listener = new MessageListener ( m_Socket ) ; TerraHarvestMessage message = createMissionProgramMessage ( MissionProgrammingMessageType . UnregisterEventHandlerRequest , null ) ; message . writeDelimitedTo ( m_Socket . getOutputStream ( ) ) ; listener . waitForMessage ( Namespace . MissionProgramming , MissionProgrammingMessageType . UnregisterEventHandlerResponse , 500 ) ; }
Send a request to unregister all event handlers.
Send a request to unregister all event handlers .
//request //there is no data message so only need to verify response