mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/mp/TestProgramImpl.java
@Test
    public void testGetExecutionParamsNotExecParams() throws IllegalStateException, MissionProgramException
    {
        //program
        MissionProgramSchedule schedule = createMissionSchedule(0L, 0L, false, true, true, false);
        MissionProgramTemplate programMission = new MissionProgramTemplate().withVendor("hello").
            withSupportTestExecution(true).withVariableMetaData(new MissionVariableMetaData().withName("asset"). 
                    withType(MissionVariableTypesEnum.ASSET).withDescription("Really awesome variable"));
        programMission.setName("jaja");
        programMission.setSource("TheSourceIsHere");
        programMission.setPrimaryImage(new DigitalMedia().withEncoding("Hieroglyphics"));
        Asset asset = mock(Asset.class);
        when(m_Manager.getAssetDep("asset")).thenReturn(asset);
        ProgramImpl program = new ProgramImpl(m_Manager, m_EventAdmin, programMission, new MissionProgramParameters().
             withParameters(new MapEntry("asset", "asset")).
             withSchedule(schedule).
             withProgramName("jaja"), UUID.randomUUID());
        
        //reconcile the dep, this will change the value in the exec params to hold the asset value and not the asset's
        //name
        program.reconcileDependencies();
        
        assertThat(program.getExecutionParameters(), hasEntry("asset", (Object)"asset"));
        assertThat(program.getExecutionParameters(), is(not(program.getExecParams())));
    }
/**
     * Test getting a program' execution parameters returns a manageable version of those parameters.
     * Verify the returned parameters are NOT the exec parameters, which are translated to the actual
     * target objects in a map<String, Object>.
     */
Test getting a program' execution parameters returns a manageable version of those parameters.
Verify the returned parameters are NOT the exec parameters, which are translated to the actual
target objects in a map.
Test getting a program ' execution parameters returns a manageable version of those parameters . Verify the returned parameters are NOT the exec parameters which are translated to the actual target objects in a map .
@Test
    public void testGetExecutionParamsNotExecParams() throws IllegalStateException, MissionProgramException
    {
        MissionProgramSchedule schedule = createMissionSchedule(0L, 0L, false, true, true, false);
        MissionProgramTemplate programMission = new MissionProgramTemplate().withVendor("hello").
            withSupportTestExecution(true).withVariableMetaData(new MissionVariableMetaData().withName("asset"). 
                    withType(MissionVariableTypesEnum.ASSET).withDescription("Really awesome variable"));
        programMission.setName("jaja");
        programMission.setSource("TheSourceIsHere");
        programMission.setPrimaryImage(new DigitalMedia().withEncoding("Hieroglyphics"));
        Asset asset = mock(Asset.class);
        when(m_Manager.getAssetDep("asset")).thenReturn(asset);
        ProgramImpl program = new ProgramImpl(m_Manager, m_EventAdmin, programMission, new MissionProgramParameters().
             withParameters(new MapEntry("asset", "asset")).
             withSchedule(schedule).
             withProgramName("jaja"), UUID.randomUUID());
        program.reconcileDependencies();
        assertThat(program.getExecutionParameters(), hasEntry("asset", (Object)"asset"));
        assertThat(program.getExecutionParameters(), is(not(program.getExecParams())));
    }
@ Test public void testGetExecutionParamsNotExecParams ( ) throws IllegalStateException , MissionProgramException { MissionProgramSchedule schedule = createMissionSchedule ( 0L , 0L , false , true , true , false ) ; MissionProgramTemplate programMission = new MissionProgramTemplate ( ) . withVendor ( "hello" ) . withSupportTestExecution ( true ) . withVariableMetaData ( new MissionVariableMetaData ( ) . withName ( "asset" ) . withType ( MissionVariableTypesEnum . ASSET ) . withDescription ( "Really awesome variable" ) ) ; programMission . setName ( "jaja" ) ; programMission . setSource ( "TheSourceIsHere" ) ; programMission . setPrimaryImage ( new DigitalMedia ( ) . withEncoding ( "Hieroglyphics" ) ) ; Asset asset = mock ( Asset . class ) ; when ( m_Manager . getAssetDep ( "asset" ) ) . thenReturn ( asset ) ; ProgramImpl program = new ProgramImpl ( m_Manager , m_EventAdmin , programMission , new MissionProgramParameters ( ) . withParameters ( new MapEntry ( "asset" , "asset" ) ) . withSchedule ( schedule ) . withProgramName ( "jaja" ) , UUID . randomUUID ( ) ) ; program . reconcileDependencies ( ) ; assertThat ( program . getExecutionParameters ( ) , hasEntry ( "asset" , ( Object ) "asset" ) ) ; assertThat ( program . getExecutionParameters ( ) , is ( not ( program . getExecParams ( ) ) ) ) ; }
Test getting a program' execution parameters returns a manageable version of those parameters.
Test getting a program ' execution parameters returns a manageable version of those parameters .
//program //reconcile the dep, this will change the value in the exec params to hold the asset value and not the asset's //name