mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsLayerLinkModel.java
@Test
    public void testSetters()
    {
        //create link layer model
        CommsLayerLinkModelImpl model = new CommsLayerLinkModelImpl(123, m_Uuid, COMM_PID, "clazz", 
                m_FactoryMgr, m_TypesMgr, m_ConfigWrapper, m_CommsImageInterface);

        model.setActivated(true);
        assertThat(model.isActivated(), is(true));
        
        model.setStatus(LinkLayer.LinkStatus.OK);
        assertThat(model.getStatus(), is(LinkLayer.LinkStatus.OK));
        assertThat(model.getStatusString(), is("OK"));
        
        model.setStatus(LinkLayer.LinkStatus.LOST);
        assertThat(model.getStatus(), is(LinkLayer.LinkStatus.LOST));
        assertThat(model.getStatusString(), is("LOST"));
        
        assertThat(model.isMetadataComplete(), is(true));
    }
/**
     * Test setter methods of the link layer model.
     * 
     * Verify that methods update appropriately to newly set values.
     */
Test setter methods of the link layer model.

Verify that methods update appropriately to newly set values.
Test setter methods of the link layer model . Verify that methods update appropriately to newly set values .
@Test
    public void testSetters()
    {
        CommsLayerLinkModelImpl model = new CommsLayerLinkModelImpl(123, m_Uuid, COMM_PID, "clazz", 
                m_FactoryMgr, m_TypesMgr, m_ConfigWrapper, m_CommsImageInterface);
        model.setActivated(true);
        assertThat(model.isActivated(), is(true));
        model.setStatus(LinkLayer.LinkStatus.OK);
        assertThat(model.getStatus(), is(LinkLayer.LinkStatus.OK));
        assertThat(model.getStatusString(), is("OK"));
        model.setStatus(LinkLayer.LinkStatus.LOST);
        assertThat(model.getStatus(), is(LinkLayer.LinkStatus.LOST));
        assertThat(model.getStatusString(), is("LOST"));
        assertThat(model.isMetadataComplete(), is(true));
    }
@ Test public void testSetters ( ) { CommsLayerLinkModelImpl model = new CommsLayerLinkModelImpl ( 123 , m_Uuid , COMM_PID , "clazz" , m_FactoryMgr , m_TypesMgr , m_ConfigWrapper , m_CommsImageInterface ) ; model . setActivated ( true ) ; assertThat ( model . isActivated ( ) , is ( true ) ) ; model . setStatus ( LinkLayer . LinkStatus . OK ) ; assertThat ( model . getStatus ( ) , is ( LinkLayer . LinkStatus . OK ) ) ; assertThat ( model . getStatusString ( ) , is ( "OK" ) ) ; model . setStatus ( LinkLayer . LinkStatus . LOST ) ; assertThat ( model . getStatus ( ) , is ( LinkLayer . LinkStatus . LOST ) ) ; assertThat ( model . getStatusString ( ) , is ( "LOST" ) ) ; assertThat ( model . isMetadataComplete ( ) , is ( true ) ) ; }
Test setter methods of the link layer model.
Test setter methods of the link layer model .
//create link layer model