mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/TestPrepFor2ndRun.java
@Test
    public void testCreateMissionProgram() throws IllegalArgumentException, PersistenceFailedException, 
        MissionProgramException, IOException
    {
        //This mission is created to test the ability to create programs with 
        //different types of auto execute arguments.                 
        MissionProgramSchedule schedule = new MissionProgramSchedule().withIndefiniteInterval(false).
            withImmediately(false).withActive(true).withAtReset(false);
        String name = TestPersistedMissionPrograms.TestPrimitivesService.class.getName();
        MissionProgramParameters params = new MissionProgramParameters().withTemplateName("variable-types-template").
            withParameters(new MapEntry("PrimitiveServiceRef", name), 
                new MapEntry("intA", 12), new MapEntry("intB", 90), 
                new MapEntry("longA", 12L), 
                new MapEntry("msg", "ALL DONE TESTING PRIMITIVES"), 
                new MapEntry("shortA", (short)3), 
                new MapEntry("doubleA", 19.36), 
                new MapEntry("booleanA", true)).
                withSchedule(schedule).withProgramName("Test_Diff_Auto_Args");
        
        Program program = m_MissionProgramManager.loadParameters(params);
        assertThat(m_MissionProgramManager.getActiveProgramsUsingTemplate("variable-types-template"), 
            hasItem(program)); 
    }
/**
     * This tests that a java primitive is un-marshalled to the proper type tested 
     * {@link mil.dod.th.ose.controller.integration.core.TestPersistedMissionPrograms#testPersistedMissionExecArgs()}.
     */
This tests that a java primitive is un-marshalled to the proper type tested
mil.dod.th.ose.controller.integration.core.TestPersistedMissionPrograms#testPersistedMissionExecArgs().
This tests that a java primitive is un - marshalled to the proper type tested mil . dod . th . ose . controller . integration . core . TestPersistedMissionPrograms#testPersistedMissionExecArgs () .
@Test
    public void testCreateMissionProgram() throws IllegalArgumentException, PersistenceFailedException, 
        MissionProgramException, IOException
    {
        MissionProgramSchedule schedule = new MissionProgramSchedule().withIndefiniteInterval(false).
            withImmediately(false).withActive(true).withAtReset(false);
        String name = TestPersistedMissionPrograms.TestPrimitivesService.class.getName();
        MissionProgramParameters params = new MissionProgramParameters().withTemplateName("variable-types-template").
            withParameters(new MapEntry("PrimitiveServiceRef", name), 
                new MapEntry("intA", 12), new MapEntry("intB", 90), 
                new MapEntry("longA", 12L), 
                new MapEntry("msg", "ALL DONE TESTING PRIMITIVES"), 
                new MapEntry("shortA", (short)3), 
                new MapEntry("doubleA", 19.36), 
                new MapEntry("booleanA", true)).
                withSchedule(schedule).withProgramName("Test_Diff_Auto_Args");
        Program program = m_MissionProgramManager.loadParameters(params);
        assertThat(m_MissionProgramManager.getActiveProgramsUsingTemplate("variable-types-template"), 
            hasItem(program)); 
    }
@ Test public void testCreateMissionProgram ( ) throws IllegalArgumentException , PersistenceFailedException , MissionProgramException , IOException { MissionProgramSchedule schedule = new MissionProgramSchedule ( ) . withIndefiniteInterval ( false ) . withImmediately ( false ) . withActive ( true ) . withAtReset ( false ) ; String name = TestPersistedMissionPrograms . TestPrimitivesService . class . getName ( ) ; MissionProgramParameters params = new MissionProgramParameters ( ) . withTemplateName ( "variable-types-template" ) . withParameters ( new MapEntry ( "PrimitiveServiceRef" , name ) , new MapEntry ( "intA" , 12 ) , new MapEntry ( "intB" , 90 ) , new MapEntry ( "longA" , 12L ) , new MapEntry ( "msg" , "ALL DONE TESTING PRIMITIVES" ) , new MapEntry ( "shortA" , ( short ) 3 ) , new MapEntry ( "doubleA" , 19.36 ) , new MapEntry ( "booleanA" , true ) ) . withSchedule ( schedule ) . withProgramName ( "Test_Diff_Auto_Args" ) ; Program program = m_MissionProgramManager . loadParameters ( params ) ; assertThat ( m_MissionProgramManager . getActiveProgramsUsingTemplate ( "variable-types-template" ) , hasItem ( program ) ) ; }
This tests that a java primitive is un-marshalled to the proper type tested
 {@link mil.dod.th.ose.controller.integration.core.TestPersistedMissionPrograms#testPersistedMissionExecArgs()}.
This tests that a java primitive is un - marshalled to the proper type tested { @link mil . dod . th . ose . controller . integration . core . TestPersistedMissionPrograms#testPersistedMissionExecArgs () } .
//This mission is created to test the ability to create programs with  //different types of auto execute arguments.                 