mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestSelectedCommsHelper.java
@Test
    public void testSendLinkActivation()
    {
        CommsLayerLinkModelImpl linky = new CommsLayerLinkModelImpl(123, uuid, pid, pid, 
                m_FactoryMgr, m_TypesMgr, m_ConfigWrapper, m_CommsImageInterface);
        linky.setActivated(false);
        m_SUT.sendLinkActivationRequest(linky, 123);
        
        verify(m_MessageFactory).createLinkLayerMessage(eq(LinkLayerMessageType.ActivateRequest), 
                Mockito.any(Message.class));
        verify(m_MessageWrapper).queue(Mockito.anyInt(), (ResponseHandler) eq(null));
        
        linky.setActivated(true);
        m_SUT.sendLinkActivationRequest(linky, 123);
        
        verify(m_MessageFactory).createLinkLayerMessage(eq(LinkLayerMessageType.DeactivateRequest), 
                Mockito.any(Message.class));
        verify(m_MessageWrapper, times(2)).queue(Mockito.anyInt(), 
                (ResponseHandler) eq(null));        
    }
/**
     * Test send link activation functionality.
     * Verify remote message to activate/deactivate link is sent.  
     */
Test send link activation functionality.
Verify remote message to activate/deactivate link is sent.
Test send link activation functionality . Verify remote message to activate / deactivate link is sent .
@Test
    public void testSendLinkActivation()
    {
        CommsLayerLinkModelImpl linky = new CommsLayerLinkModelImpl(123, uuid, pid, pid, 
                m_FactoryMgr, m_TypesMgr, m_ConfigWrapper, m_CommsImageInterface);
        linky.setActivated(false);
        m_SUT.sendLinkActivationRequest(linky, 123);
        verify(m_MessageFactory).createLinkLayerMessage(eq(LinkLayerMessageType.ActivateRequest), 
                Mockito.any(Message.class));
        verify(m_MessageWrapper).queue(Mockito.anyInt(), (ResponseHandler) eq(null));
        linky.setActivated(true);
        m_SUT.sendLinkActivationRequest(linky, 123);
        verify(m_MessageFactory).createLinkLayerMessage(eq(LinkLayerMessageType.DeactivateRequest), 
                Mockito.any(Message.class));
        verify(m_MessageWrapper, times(2)).queue(Mockito.anyInt(), 
                (ResponseHandler) eq(null));        
    }
@ Test public void testSendLinkActivation ( ) { CommsLayerLinkModelImpl linky = new CommsLayerLinkModelImpl ( 123 , uuid , pid , pid , m_FactoryMgr , m_TypesMgr , m_ConfigWrapper , m_CommsImageInterface ) ; linky . setActivated ( false ) ; m_SUT . sendLinkActivationRequest ( linky , 123 ) ; verify ( m_MessageFactory ) . createLinkLayerMessage ( eq ( LinkLayerMessageType . ActivateRequest ) , Mockito . any ( Message . class ) ) ; verify ( m_MessageWrapper ) . queue ( Mockito . anyInt ( ) , ( ResponseHandler ) eq ( null ) ) ; linky . setActivated ( true ) ; m_SUT . sendLinkActivationRequest ( linky , 123 ) ; verify ( m_MessageFactory ) . createLinkLayerMessage ( eq ( LinkLayerMessageType . DeactivateRequest ) , Mockito . any ( Message . class ) ) ; verify ( m_MessageWrapper , times ( 2 ) ) . queue ( Mockito . anyInt ( ) , ( ResponseHandler ) eq ( null ) ) ; }
Test send link activation functionality.
Test send link activation functionality .