mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestCustomCommsService.java
public void testGetOpenPhysicalLinks() throws CCommException, PhysicalLinkException
    {
        CustomCommsService customCommsService = ServiceUtils.getService(m_Context, CustomCommsService.class);
        
        PhysicalLink i2c = customCommsService.createPhysicalLink(PhysicalLinkTypeEnum.I_2_C);
        PhysicalLink serial = customCommsService.createPhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT);
        
        i2c.open();
        i2c.close();
        
        serial.open();
        serial.close();
    }
/**
     * Verify links can be created and opened. Since they are only example plug-ins nothing more meaningful can be 
     * tested.
     */
Verify links can be created and opened. Since they are only example plug-ins nothing more meaningful can be
tested.
Verify links can be created and opened . Since they are only example plug - ins nothing more meaningful can be tested .
public void testGetOpenPhysicalLinks() throws CCommException, PhysicalLinkException
    {
        CustomCommsService customCommsService = ServiceUtils.getService(m_Context, CustomCommsService.class);
        PhysicalLink i2c = customCommsService.createPhysicalLink(PhysicalLinkTypeEnum.I_2_C);
        PhysicalLink serial = customCommsService.createPhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT);
        i2c.open();
        i2c.close();
        serial.open();
        serial.close();
    }
public void testGetOpenPhysicalLinks ( ) throws CCommException , PhysicalLinkException { CustomCommsService customCommsService = ServiceUtils . getService ( m_Context , CustomCommsService . class ) ; PhysicalLink i2c = customCommsService . createPhysicalLink ( PhysicalLinkTypeEnum . I_2_C ) ; PhysicalLink serial = customCommsService . createPhysicalLink ( PhysicalLinkTypeEnum . SERIAL_PORT ) ; i2c . open ( ) ; i2c . close ( ) ; serial . open ( ) ; serial . close ( ) ; }
Verify links can be created and opened.
Verify links can be created and opened .