mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsLayerLinkModel.java
@Test
    public void testIsMetadataComplete()
    {
        //create link layer model
        CommsLayerLinkModelImpl model = new CommsLayerLinkModelImpl(123, m_Uuid, COMM_PID, "clazz", 
                m_FactoryMgr, m_TypesMgr, m_ConfigWrapper, m_CommsImageInterface);
        
        assertThat(model.isMetadataComplete(), is(false));
        model.setActivated(true);
        
        assertThat(model.isMetadataComplete(), is(false));
        model.setStatus(LinkStatus.OK);
        
        assertThat(model.isMetadataComplete(), is(true));
    }
/**
     * Verify metadata is not completed until the model is activated and the status is set.
     */
Verify metadata is not completed until the model is activated and the status is set.
Verify metadata is not completed until the model is activated and the status is set .
@Test
    public void testIsMetadataComplete()
    {
        CommsLayerLinkModelImpl model = new CommsLayerLinkModelImpl(123, m_Uuid, COMM_PID, "clazz", 
                m_FactoryMgr, m_TypesMgr, m_ConfigWrapper, m_CommsImageInterface);
        assertThat(model.isMetadataComplete(), is(false));
        model.setActivated(true);
        assertThat(model.isMetadataComplete(), is(false));
        model.setStatus(LinkStatus.OK);
        assertThat(model.isMetadataComplete(), is(true));
    }
@ Test public void testIsMetadataComplete ( ) { CommsLayerLinkModelImpl model = new CommsLayerLinkModelImpl ( 123 , m_Uuid , COMM_PID , "clazz" , m_FactoryMgr , m_TypesMgr , m_ConfigWrapper , m_CommsImageInterface ) ; assertThat ( model . isMetadataComplete ( ) , is ( false ) ) ; model . setActivated ( true ) ; assertThat ( model . isMetadataComplete ( ) , is ( false ) ) ; model . setStatus ( LinkStatus . OK ) ; assertThat ( model . isMetadataComplete ( ) , is ( true ) ) ; }
Verify metadata is not completed until the model is activated and the status is set.
Verify metadata is not completed until the model is activated and the status is set .
//create link layer model