mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestMissionProgrammingNamespace.java
@Test
    public void testGetTemplateNames() throws IOException, InterruptedException
    {
        MessageListener listener = new MessageListener(m_Socket);
        
        //create mission message
        TerraHarvestMessage message = TestMissionProgrammingNamespace.
                createMissionProgramMessage(MissionProgrammingMessageType.GetTemplateNamesRequest, null);
        
        message.writeDelimitedTo(m_Socket.getOutputStream());
        
        MissionProgrammingNamespace namespace = (MissionProgrammingNamespace)listener.waitForMessage(
                Namespace.MissionProgramming, MissionProgrammingMessageType.GetTemplateNamesResponse, 500);
        
        GetTemplateNamesResponseData response = GetTemplateNamesResponseData.parseFrom(namespace.getData());
        
        assertThat(response.getTemplateNameCount(), greaterThan(1));
        assertThat(response.getTemplateNameList(), hasItems("timed-data-capture-loop", "triggered-data-captured"));
    }
/**
     * Test Getting the names of all the templates known to a system.
     * Verify that default two names of the templates that are deployed with the system are returned. 
     */
Test Getting the names of all the templates known to a system.
Verify that default two names of the templates that are deployed with the system are returned.
Test Getting the names of all the templates known to a system . Verify that default two names of the templates that are deployed with the system are returned .
@Test
    public void testGetTemplateNames() throws IOException, InterruptedException
    {
        MessageListener listener = new MessageListener(m_Socket);
        TerraHarvestMessage message = TestMissionProgrammingNamespace.
                createMissionProgramMessage(MissionProgrammingMessageType.GetTemplateNamesRequest, null);
        message.writeDelimitedTo(m_Socket.getOutputStream());
        MissionProgrammingNamespace namespace = (MissionProgrammingNamespace)listener.waitForMessage(
                Namespace.MissionProgramming, MissionProgrammingMessageType.GetTemplateNamesResponse, 500);
        GetTemplateNamesResponseData response = GetTemplateNamesResponseData.parseFrom(namespace.getData());
        assertThat(response.getTemplateNameCount(), greaterThan(1));
        assertThat(response.getTemplateNameList(), hasItems("timed-data-capture-loop", "triggered-data-captured"));
    }
@ Test public void testGetTemplateNames ( ) throws IOException , InterruptedException { MessageListener listener = new MessageListener ( m_Socket ) ; TerraHarvestMessage message = TestMissionProgrammingNamespace . createMissionProgramMessage ( MissionProgrammingMessageType . GetTemplateNamesRequest , null ) ; message . writeDelimitedTo ( m_Socket . getOutputStream ( ) ) ; MissionProgrammingNamespace namespace = ( MissionProgrammingNamespace ) listener . waitForMessage ( Namespace . MissionProgramming , MissionProgrammingMessageType . GetTemplateNamesResponse , 500 ) ; GetTemplateNamesResponseData response = GetTemplateNamesResponseData . parseFrom ( namespace . getData ( ) ) ; assertThat ( response . getTemplateNameCount ( ) , greaterThan ( 1 ) ) ; assertThat ( response . getTemplateNameList ( ) , hasItems ( "timed-data-capture-loop" , "triggered-data-captured" ) ) ; }
Test Getting the names of all the templates known to a system.
Test Getting the names of all the templates known to a system .
//create mission message