mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsMgrImpl.java
@Test
    public void testUnusedPhysicalLink()
    {
        // add controller and layer
        m_SUT.getPhysicalsAsync(systemId1);
        Event physicals = mockGetLayersResponse(systemId1, "physical");
        Event name = mockEventNameUpdated(systemId1, "physical");
        
        m_EventHelperComms.handleEvent(physicals);
        m_EventHelper.handleEvent(name);
        
        List<CommsLayerBaseModel> physicalList = m_SUT.getPhysicalsAsync(systemId1);
        assertThat(physicalList.size(), is(3));
        physicalList.remove(2);
        physicalList.remove(1);
        
        m_SUT.setUnusedPhysicalLinks(systemId1, physicalList);
        List<String> unusedNames = m_SUT.getUnusedPhysicalLinkNames(systemId1);
        
        assertThat(unusedNames.size(), is(1));
        assertThat(unusedNames.get(0), is("fizzy"));
        
    }
/**
     * Verify unused physical links are properly returned.
     */
Verify unused physical links are properly returned.
Verify unused physical links are properly returned .
@Test
    public void testUnusedPhysicalLink()
    {
        m_SUT.getPhysicalsAsync(systemId1);
        Event physicals = mockGetLayersResponse(systemId1, "physical");
        Event name = mockEventNameUpdated(systemId1, "physical");
        m_EventHelperComms.handleEvent(physicals);
        m_EventHelper.handleEvent(name);
        List<CommsLayerBaseModel> physicalList = m_SUT.getPhysicalsAsync(systemId1);
        assertThat(physicalList.size(), is(3));
        physicalList.remove(2);
        physicalList.remove(1);
        m_SUT.setUnusedPhysicalLinks(systemId1, physicalList);
        List<String> unusedNames = m_SUT.getUnusedPhysicalLinkNames(systemId1);
        assertThat(unusedNames.size(), is(1));
        assertThat(unusedNames.get(0), is("fizzy"));
    }
@ Test public void testUnusedPhysicalLink ( ) { m_SUT . getPhysicalsAsync ( systemId1 ) ; Event physicals = mockGetLayersResponse ( systemId1 , "physical" ) ; Event name = mockEventNameUpdated ( systemId1 , "physical" ) ; m_EventHelperComms . handleEvent ( physicals ) ; m_EventHelper . handleEvent ( name ) ; List < CommsLayerBaseModel > physicalList = m_SUT . getPhysicalsAsync ( systemId1 ) ; assertThat ( physicalList . size ( ) , is ( 3 ) ) ; physicalList . remove ( 2 ) ; physicalList . remove ( 1 ) ; m_SUT . setUnusedPhysicalLinks ( systemId1 , physicalList ) ; List < String > unusedNames = m_SUT . getUnusedPhysicalLinkNames ( systemId1 ) ; assertThat ( unusedNames . size ( ) , is ( 1 ) ) ; assertThat ( unusedNames . get ( 0 ) , is ( "fizzy" ) ) ; }
Verify unused physical links are properly returned.
Verify unused physical links are properly returned .
// add controller and layer