mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestSelectedCommsHelper.java
@Test
    public void testRemoveStackLayerNamesWithLinkOnly()
    {
        CommsStackModelImpl stack = new CommsStackModelImpl(m_CommsImageInterface);
        CommsLayerLinkModelImpl link = new CommsLayerLinkModelImpl(0, uuid2, pid, pid, 
                m_FactoryMgr, m_TypesMgr, m_ConfigWrapper, m_CommsImageInterface);
        stack.setLink(link);
        
        m_SUT.setRemoveStack(stack);
        
        String removeLayers = m_SUT.getRemoveStackLayerNames();
        
        assertThat(removeLayers.contains(uuid2.toString()), is(true));
    }
/**
     * Verify that with only a link layer model set, only the link layer name is returned.
     */
Verify that with only a link layer model set, only the link layer name is returned.
Verify that with only a link layer model set only the link layer name is returned .
@Test
    public void testRemoveStackLayerNamesWithLinkOnly()
    {
        CommsStackModelImpl stack = new CommsStackModelImpl(m_CommsImageInterface);
        CommsLayerLinkModelImpl link = new CommsLayerLinkModelImpl(0, uuid2, pid, pid, 
                m_FactoryMgr, m_TypesMgr, m_ConfigWrapper, m_CommsImageInterface);
        stack.setLink(link);
        m_SUT.setRemoveStack(stack);
        String removeLayers = m_SUT.getRemoveStackLayerNames();
        assertThat(removeLayers.contains(uuid2.toString()), is(true));
    }
@ Test public void testRemoveStackLayerNamesWithLinkOnly ( ) { CommsStackModelImpl stack = new CommsStackModelImpl ( m_CommsImageInterface ) ; CommsLayerLinkModelImpl link = new CommsLayerLinkModelImpl ( 0 , uuid2 , pid , pid , m_FactoryMgr , m_TypesMgr , m_ConfigWrapper , m_CommsImageInterface ) ; stack . setLink ( link ) ; m_SUT . setRemoveStack ( stack ) ; String removeLayers = m_SUT . getRemoveStackLayerNames ( ) ; assertThat ( removeLayers . contains ( uuid2 . toString ( ) ) , is ( true ) ) ; }
Verify that with only a link layer model set, only the link layer name is returned.
Verify that with only a link layer model set only the link layer name is returned .