mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsLayerTypesMgrImpl.java
@Test
    public void testGetPhysicalLinkTypes() throws ObjectConverterException
    {
        Event getTypes = mockMessageGetCommsTypesResponse(systemId1, CommType.PhysicalLink);
        m_CommsHelper.handleEvent(getTypes);
        
        handleTestCapabiltiesMessage("class.name.one", PhysicalLinkTypeEnum.SERIAL_PORT);
        handleTestCapabiltiesMessage("class.name.two", PhysicalLinkTypeEnum.GPIO);
        
        assertThat(m_SUT.getPhysicalLinkTypes(123),
            hasItems(PhysicalLinkTypeEnum.SERIAL_PORT, PhysicalLinkTypeEnum.GPIO));
    }
/**
     * Verify physical link types are returned.
     */
Verify physical link types are returned.
Verify physical link types are returned .
@Test
    public void testGetPhysicalLinkTypes() throws ObjectConverterException
    {
        Event getTypes = mockMessageGetCommsTypesResponse(systemId1, CommType.PhysicalLink);
        m_CommsHelper.handleEvent(getTypes);
        handleTestCapabiltiesMessage("class.name.one", PhysicalLinkTypeEnum.SERIAL_PORT);
        handleTestCapabiltiesMessage("class.name.two", PhysicalLinkTypeEnum.GPIO);
        assertThat(m_SUT.getPhysicalLinkTypes(123),
            hasItems(PhysicalLinkTypeEnum.SERIAL_PORT, PhysicalLinkTypeEnum.GPIO));
    }
@ Test public void testGetPhysicalLinkTypes ( ) throws ObjectConverterException { Event getTypes = mockMessageGetCommsTypesResponse ( systemId1 , CommType . PhysicalLink ) ; m_CommsHelper . handleEvent ( getTypes ) ; handleTestCapabiltiesMessage ( "class.name.one" , PhysicalLinkTypeEnum . SERIAL_PORT ) ; handleTestCapabiltiesMessage ( "class.name.two" , PhysicalLinkTypeEnum . GPIO ) ; assertThat ( m_SUT . getPhysicalLinkTypes ( 123 ) , hasItems ( PhysicalLinkTypeEnum . SERIAL_PORT , PhysicalLinkTypeEnum . GPIO ) ) ; }
Verify physical link types are returned.
Verify physical link types are returned .