mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestLinkLayer.java
public final void testActivateEvent() throws InterruptedException, CCommException, PersistenceFailedException,
        IOException
    { 
        final String linkName = "ActivateEvent";
        createLinkLayer(linkName);
        
        EventHandlerSyncer syncer = new EventHandlerSyncer(m_Context, LinkLayer.TOPIC_ACTIVATED, 
                String.format("(%s=%s)", FactoryDescriptor.EVENT_PROP_OBJ_NAME, linkName));
        
        m_LinkLayer.activateLayer();
        
        syncer.waitForEvent(2);
        
        syncer = new EventHandlerSyncer(m_Context, LinkLayer.TOPIC_DEACTIVATED, String.format("(%s=%s)", 
                FactoryDescriptor.EVENT_PROP_OBJ_NAME, linkName));
       
        m_LinkLayer.deactivateLayer();
        
        syncer.waitForEvent(2);
    }
/**
     * Verify that a {@link LinkLayer} will post an event when it is activated and deactivated.
     */
Verify that a  LinkLayer will post an event when it is activated and deactivated.
Verify that a LinkLayer will post an event when it is activated and deactivated .
public final void testActivateEvent() throws InterruptedException, CCommException, PersistenceFailedException,
        IOException
    { 
        final String linkName = "ActivateEvent";
        createLinkLayer(linkName);
        EventHandlerSyncer syncer = new EventHandlerSyncer(m_Context, LinkLayer.TOPIC_ACTIVATED, 
                String.format("(%s=%s)", FactoryDescriptor.EVENT_PROP_OBJ_NAME, linkName));
        m_LinkLayer.activateLayer();
        syncer.waitForEvent(2);
        syncer = new EventHandlerSyncer(m_Context, LinkLayer.TOPIC_DEACTIVATED, String.format("(%s=%s)", 
                FactoryDescriptor.EVENT_PROP_OBJ_NAME, linkName));
        m_LinkLayer.deactivateLayer();
        syncer.waitForEvent(2);
    }
public final void testActivateEvent ( ) throws InterruptedException , CCommException , PersistenceFailedException , IOException { final String linkName = "ActivateEvent" ; createLinkLayer ( linkName ) ; EventHandlerSyncer syncer = new EventHandlerSyncer ( m_Context , LinkLayer . TOPIC_ACTIVATED , String . format ( "(%s=%s)" , FactoryDescriptor . EVENT_PROP_OBJ_NAME , linkName ) ) ; m_LinkLayer . activateLayer ( ) ; syncer . waitForEvent ( 2 ) ; syncer = new EventHandlerSyncer ( m_Context , LinkLayer . TOPIC_DEACTIVATED , String . format ( "(%s=%s)" , FactoryDescriptor . EVENT_PROP_OBJ_NAME , linkName ) ) ; m_LinkLayer . deactivateLayer ( ) ; syncer . waitForEvent ( 2 ) ; }
Verify that a {@link LinkLayer} will post an event when it is activated and deactivated.
Verify that a { @link LinkLayer } will post an event when it is activated and deactivated .