mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/MessageListener.java
public static void unregisterEvent(Socket socket) throws IOException
    {
        //clean up registered events
        TerraHarvestMessage message = TestEventAdminNamespace.createEventAdminMessage(
                EventAdminMessageType.CleanupRequest, null);
        // send out message
        message.writeDelimitedTo(socket.getOutputStream());
        
        MessageListener listener = new MessageListener(socket); 
        listener.waitForMessages(4500, false, 
                new BasicMessageMatcher(Namespace.EventAdmin, EventAdminMessageType.CleanupResponse)); 
    }
/**
     * Method used to clean up registrations after a test class runs.
     * @param socket
     *      socket used to send cleanup request
     * @throws IOException 
     *      if cannot get input stream due to socket issues
     */
Method used to clean up registrations after a test class runs.
@param socket
socket used to send cleanup request
@throws IOException
if cannot get input stream due to socket issues
Method used to clean up registrations after a test class runs . @param socket socket used to send cleanup request @throws IOException if cannot get input stream due to socket issues
public static void unregisterEvent(Socket socket) throws IOException
    {
        TerraHarvestMessage message = TestEventAdminNamespace.createEventAdminMessage(
                EventAdminMessageType.CleanupRequest, null);
        message.writeDelimitedTo(socket.getOutputStream());
        MessageListener listener = new MessageListener(socket); 
        listener.waitForMessages(4500, false, 
                new BasicMessageMatcher(Namespace.EventAdmin, EventAdminMessageType.CleanupResponse)); 
    }
public static void unregisterEvent ( Socket socket ) throws IOException { TerraHarvestMessage message = TestEventAdminNamespace . createEventAdminMessage ( EventAdminMessageType . CleanupRequest , null ) ; message . writeDelimitedTo ( socket . getOutputStream ( ) ) ; MessageListener listener = new MessageListener ( socket ) ; listener . waitForMessages ( 4500 , false , new BasicMessageMatcher ( Namespace . EventAdmin , EventAdminMessageType . CleanupResponse ) ) ; }
Method used to clean up registrations after a test class runs.
Method used to clean up registrations after a test class runs .
//clean up registered events // send out message