mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/ConfigNamespaceUtils.java
public static void deleteConfig(final String pid, final Socket socket, final MessageListener listener) throws 
        IOException, InterruptedException
    {
        //Create delete message to reset altered configuration values.
        DeleteConfigurationRequestData deletConfigRequest = DeleteConfigurationRequestData.newBuilder().setPid(
                pid).build();
        
        //create terra harvest message
        TerraHarvestMessage thMessage = 
                TestConfigAdminNamespace.createConfigAdminMessage(
                        ConfigAdminMessageType.DeleteConfigurationRequest, deletConfigRequest);
        
        //send out message
        thMessage.writeDelimitedTo(socket.getOutputStream());
        
        //Verify a delete configuration response is received.
        Message message = listener.waitForMessage(Namespace.ConfigAdmin, 
                ConfigAdminMessageType.DeleteConfigurationResponse, 1500);
        
        //verify response has correct PID
        DeleteConfigurationResponseData responseData = 
                DeleteConfigurationResponseData.parseFrom(((ConfigAdminNamespace)message).getData());
        assertThat(responseData.getPid(), is(pid));
    }
/**
     * Sends a delete configuration method for the specified PID. Verifies a response is received.
     * @param pid
     *      PID of the configuration to be deleted.
     * @param socket
     *      Socket used to send the message.
     * @param listener
     *      Listener used to listener for the response message.
     */
Sends a delete configuration method for the specified PID. Verifies a response is received.
@param pid
PID of the configuration to be deleted.
@param socket
Socket used to send the message.
@param listener
Listener used to listener for the response message.
Sends a delete configuration method for the specified PID . Verifies a response is received . @param pid PID of the configuration to be deleted . @param socket Socket used to send the message . @param listener Listener used to listener for the response message .
public static void deleteConfig(final String pid, final Socket socket, final MessageListener listener) throws 
        IOException, InterruptedException
    {
        DeleteConfigurationRequestData deletConfigRequest = DeleteConfigurationRequestData.newBuilder().setPid(
                pid).build();
        TerraHarvestMessage thMessage = 
                TestConfigAdminNamespace.createConfigAdminMessage(
                        ConfigAdminMessageType.DeleteConfigurationRequest, deletConfigRequest);
        thMessage.writeDelimitedTo(socket.getOutputStream());
        Message message = listener.waitForMessage(Namespace.ConfigAdmin, 
                ConfigAdminMessageType.DeleteConfigurationResponse, 1500);
        DeleteConfigurationResponseData responseData = 
                DeleteConfigurationResponseData.parseFrom(((ConfigAdminNamespace)message).getData());
        assertThat(responseData.getPid(), is(pid));
    }
public static void deleteConfig ( final String pid , final Socket socket , final MessageListener listener ) throws IOException , InterruptedException { DeleteConfigurationRequestData deletConfigRequest = DeleteConfigurationRequestData . newBuilder ( ) . setPid ( pid ) . build ( ) ; TerraHarvestMessage thMessage = TestConfigAdminNamespace . createConfigAdminMessage ( ConfigAdminMessageType . DeleteConfigurationRequest , deletConfigRequest ) ; thMessage . writeDelimitedTo ( socket . getOutputStream ( ) ) ; Message message = listener . waitForMessage ( Namespace . ConfigAdmin , ConfigAdminMessageType . DeleteConfigurationResponse , 1500 ) ; DeleteConfigurationResponseData responseData = DeleteConfigurationResponseData . parseFrom ( ( ( ConfigAdminNamespace ) message ) . getData ( ) ) ; assertThat ( responseData . getPid ( ) , is ( pid ) ) ; }
Sends a delete configuration method for the specified PID.
Sends a delete configuration method for the specified PID .
//Create delete message to reset altered configuration values. //create terra harvest message //send out message //Verify a delete configuration response is received. //verify response has correct PID