mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsLayerTypesMgrImpl.java
@Test
    public void testGetPhysicalLinkClassByType() throws ObjectConverterException
    {
        // just make sure it doesn't throw error in this case
        m_SUT.getPhysicalLinkClassByType(123, PhysicalLinkTypeEnum.SERIAL_PORT);
        
        Event getTypes = mockMessageGetCommsTypesResponse(systemId1, CommType.PhysicalLink);
        m_CommsHelper.handleEvent(getTypes);
        
        handleTestCapabiltiesMessage("class.name.one", PhysicalLinkTypeEnum.SERIAL_PORT);
        
        assertThat(m_SUT.getPhysicalLinkClassByType(123, PhysicalLinkTypeEnum.SERIAL_PORT), is("class.name.one"));
    }
/**
     * Verify the correct class is returned given the type.
     */
Verify the correct class is returned given the type.
Verify the correct class is returned given the type .
@Test
    public void testGetPhysicalLinkClassByType() throws ObjectConverterException
    {
        m_SUT.getPhysicalLinkClassByType(123, PhysicalLinkTypeEnum.SERIAL_PORT);
        Event getTypes = mockMessageGetCommsTypesResponse(systemId1, CommType.PhysicalLink);
        m_CommsHelper.handleEvent(getTypes);
        handleTestCapabiltiesMessage("class.name.one", PhysicalLinkTypeEnum.SERIAL_PORT);
        assertThat(m_SUT.getPhysicalLinkClassByType(123, PhysicalLinkTypeEnum.SERIAL_PORT), is("class.name.one"));
    }
@ Test public void testGetPhysicalLinkClassByType ( ) throws ObjectConverterException { m_SUT . getPhysicalLinkClassByType ( 123 , PhysicalLinkTypeEnum . SERIAL_PORT ) ; Event getTypes = mockMessageGetCommsTypesResponse ( systemId1 , CommType . PhysicalLink ) ; m_CommsHelper . handleEvent ( getTypes ) ; handleTestCapabiltiesMessage ( "class.name.one" , PhysicalLinkTypeEnum . SERIAL_PORT ) ; assertThat ( m_SUT . getPhysicalLinkClassByType ( 123 , PhysicalLinkTypeEnum . SERIAL_PORT ) , is ( "class.name.one" ) ) ; }
Verify the correct class is returned given the type.
Verify the correct class is returned given the type .
// just make sure it doesn't throw error in this case