mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestMissionProgrammingNamespace.java
@Test
    public void testStopAllManagedExecutors() throws IOException, InterruptedException
    {
        MessageListener listener = new MessageListener(m_Socket);
        
        //request data
        ManagedExecutorsShutdownRequestData request = ManagedExecutorsShutdownRequestData.newBuilder().
                setShutdownNow(true).build();
        
        //request
        TerraHarvestMessage message = createMissionProgramMessage(
                MissionProgrammingMessageType.ManagedExecutorsShutdownRequest, request);
        
        message.writeDelimitedTo(m_Socket.getOutputStream());
        
        listener.waitForMessage(
                Namespace.MissionProgramming, MissionProgrammingMessageType.ManagedExecutorsShutdownResponse, 500);
    }
/**
     * Send a request to stop all managed executors.
     * Verify response is sent back.
     */
Send a request to stop all managed executors.
Verify response is sent back.
Send a request to stop all managed executors . Verify response is sent back .
@Test
    public void testStopAllManagedExecutors() throws IOException, InterruptedException
    {
        MessageListener listener = new MessageListener(m_Socket);
        ManagedExecutorsShutdownRequestData request = ManagedExecutorsShutdownRequestData.newBuilder().
                setShutdownNow(true).build();
        TerraHarvestMessage message = createMissionProgramMessage(
                MissionProgrammingMessageType.ManagedExecutorsShutdownRequest, request);
        message.writeDelimitedTo(m_Socket.getOutputStream());
        listener.waitForMessage(
                Namespace.MissionProgramming, MissionProgrammingMessageType.ManagedExecutorsShutdownResponse, 500);
    }
@ Test public void testStopAllManagedExecutors ( ) throws IOException , InterruptedException { MessageListener listener = new MessageListener ( m_Socket ) ; ManagedExecutorsShutdownRequestData request = ManagedExecutorsShutdownRequestData . newBuilder ( ) . setShutdownNow ( true ) . build ( ) ; TerraHarvestMessage message = createMissionProgramMessage ( MissionProgrammingMessageType . ManagedExecutorsShutdownRequest , request ) ; message . writeDelimitedTo ( m_Socket . getOutputStream ( ) ) ; listener . waitForMessage ( Namespace . MissionProgramming , MissionProgrammingMessageType . ManagedExecutorsShutdownResponse , 500 ) ; }
Send a request to stop all managed executors.
Send a request to stop all managed executors .
//request data //request