mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestMissionProgrammingNamespace.java
@Test
    public void testRemoval() throws UnknownHostException, IOException, InterruptedException
    {
        m_MissionName =  "removalProgram";
        
        //create schedule
        MissionProgramParametersGen.MissionProgramSchedule schedule = MissionProgramParametersGen.
                MissionProgramSchedule.newBuilder().setActive(true).
                setStartInterval(System.currentTimeMillis() + 1000000).
                setStopInterval(System.currentTimeMillis() + 5000000).build();

        //create mission program parameters
        MissionProgramParametersGen.MissionProgramParameters params = 
            MissionProgramNamespaceUtils.genTimedDataLoopParams(schedule, ASSET_NAME, m_MissionName);
       
        //load the parameters
        MissionProgramNamespaceUtils.loadParameters(m_Socket, params);
        //cancel the mission
        MissionProgramNamespaceUtils.cancelScheduledMission(m_Socket, m_MissionName);
    }
/**
     * Test requesting the removal of a mission program.
     * Verify the mission is removed.
     */
Test requesting the removal of a mission program.
Verify the mission is removed.
Test requesting the removal of a mission program . Verify the mission is removed .
@Test
    public void testRemoval() throws UnknownHostException, IOException, InterruptedException
    {
        m_MissionName =  "removalProgram";
        MissionProgramParametersGen.MissionProgramSchedule schedule = MissionProgramParametersGen.
                MissionProgramSchedule.newBuilder().setActive(true).
                setStartInterval(System.currentTimeMillis() + 1000000).
                setStopInterval(System.currentTimeMillis() + 5000000).build();
        MissionProgramParametersGen.MissionProgramParameters params = 
            MissionProgramNamespaceUtils.genTimedDataLoopParams(schedule, ASSET_NAME, m_MissionName);
        MissionProgramNamespaceUtils.loadParameters(m_Socket, params);
        MissionProgramNamespaceUtils.cancelScheduledMission(m_Socket, m_MissionName);
    }
@ Test public void testRemoval ( ) throws UnknownHostException , IOException , InterruptedException { m_MissionName = "removalProgram" ; MissionProgramParametersGen . MissionProgramSchedule schedule = MissionProgramParametersGen . MissionProgramSchedule . newBuilder ( ) . setActive ( true ) . setStartInterval ( System . currentTimeMillis ( ) + 1000000 ) . setStopInterval ( System . currentTimeMillis ( ) + 5000000 ) . build ( ) ; MissionProgramParametersGen . MissionProgramParameters params = MissionProgramNamespaceUtils . genTimedDataLoopParams ( schedule , ASSET_NAME , m_MissionName ) ; MissionProgramNamespaceUtils . loadParameters ( m_Socket , params ) ; MissionProgramNamespaceUtils . cancelScheduledMission ( m_Socket , m_MissionName ) ; }
Test requesting the removal of a mission program.
Test requesting the removal of a mission program .
//create schedule //create mission program parameters //load the parameters //cancel the mission