mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/core/TestPersistedMissionPrograms.java
@Test
    public void testLinkLayerDepAutoExec() 
        throws IOException, InterruptedException, IllegalArgumentException, AssetException, BundleException, 
        CCommException, PersistenceFailedException, PhysicalLinkException, IllegalStateException, 
            MissionProgramException
    {
        //get all programs using that template, should only be one
        Program program = m_MissionProgramManager.getProgram("auto-exec-linklayer-dep-test");
        assertThat(program, is(notNullValue()));
        
        // wait for program to execute
        EventHandlerSyncer syncer = 
                new EventHandlerSyncer(Program.TOPIC_PROGRAM_EXECUTED, "(name=auto-exec-linklayer-dep-test)");
        if (program.getProgramStatus().equals(ProgramStatus.UNSATISFIED))
        {
            Logging.log(LogService.LOG_INFO, "auto-exec-linklayer-dep-test not complete yet, waiting for it");
            syncer.waitForEvent(10);
        }
        
        assertThat(program.getProgramStatus(), is(ProgramStatus.EXECUTED));
        
        PersistentDataStore persistentDataStore = IntegrationTestRunner.getService(PersistentDataStore.class);
        
        Collection<? extends PersistentData> dataList = persistentDataStore.query(
            Integer.class, "auto-exec-linklayer-dep-test");
        assertThat(dataList.size(), is(2));
    }
/**
     * Test that the link layer dep program made in {@link 
     * mil.dod.th.ose.controller.integration.TestPrepFor2ndRun#createAutoExecPrograms()} recovers and executes as 
     * expected.
     */
Test that the link layer dep program made in {@link
mil.dod.th.ose.controller.integration.TestPrepFor2ndRun#createAutoExecPrograms()} recovers and executes as
expected.
Test that the link layer dep program made in { @link mil . dod . th . ose . controller . integration . TestPrepFor2ndRun#createAutoExecPrograms () } recovers and executes as expected .
@Test
    public void testLinkLayerDepAutoExec() 
        throws IOException, InterruptedException, IllegalArgumentException, AssetException, BundleException, 
        CCommException, PersistenceFailedException, PhysicalLinkException, IllegalStateException, 
            MissionProgramException
    {
        Program program = m_MissionProgramManager.getProgram("auto-exec-linklayer-dep-test");
        assertThat(program, is(notNullValue()));
        EventHandlerSyncer syncer = 
                new EventHandlerSyncer(Program.TOPIC_PROGRAM_EXECUTED, "(name=auto-exec-linklayer-dep-test)");
        if (program.getProgramStatus().equals(ProgramStatus.UNSATISFIED))
        {
            Logging.log(LogService.LOG_INFO, "auto-exec-linklayer-dep-test not complete yet, waiting for it");
            syncer.waitForEvent(10);
        }
        assertThat(program.getProgramStatus(), is(ProgramStatus.EXECUTED));
        PersistentDataStore persistentDataStore = IntegrationTestRunner.getService(PersistentDataStore.class);
        Collection<? extends PersistentData> dataList = persistentDataStore.query(
            Integer.class, "auto-exec-linklayer-dep-test");
        assertThat(dataList.size(), is(2));
    }
@ Test public void testLinkLayerDepAutoExec ( ) throws IOException , InterruptedException , IllegalArgumentException , AssetException , BundleException , CCommException , PersistenceFailedException , PhysicalLinkException , IllegalStateException , MissionProgramException { Program program = m_MissionProgramManager . getProgram ( "auto-exec-linklayer-dep-test" ) ; assertThat ( program , is ( notNullValue ( ) ) ) ; EventHandlerSyncer syncer = new EventHandlerSyncer ( Program . TOPIC_PROGRAM_EXECUTED , "(name=auto-exec-linklayer-dep-test)" ) ; if ( program . getProgramStatus ( ) . equals ( ProgramStatus . UNSATISFIED ) ) { Logging . log ( LogService . LOG_INFO , "auto-exec-linklayer-dep-test not complete yet, waiting for it" ) ; syncer . waitForEvent ( 10 ) ; } assertThat ( program . getProgramStatus ( ) , is ( ProgramStatus . EXECUTED ) ) ; PersistentDataStore persistentDataStore = IntegrationTestRunner . getService ( PersistentDataStore . class ) ; Collection < ? extends PersistentData > dataList = persistentDataStore . query ( Integer . class , "auto-exec-linklayer-dep-test" ) ; assertThat ( dataList . size ( ) , is ( 2 ) ) ; }
Test that the link layer dep program made in {@link
 mil.dod.th.ose.controller.integration.TestPrepFor2ndRun#createAutoExecPrograms()} recovers and executes as
 expected.
Test that the link layer dep program made in { @link mil . dod . th . ose . controller . integration . TestPrepFor2ndRun#createAutoExecPrograms () } recovers and executes as expected .
//get all programs using that template, should only be one // wait for program to execute