mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestCustomCommsServiceImpl_Physical.java
@Test
    public void testCreatePhysicalLinkFactoryUnKnown() throws InterruptedException
    {
        when(m_PhysicalLinkServiceContext.getFactories()).thenReturn(Collections.emptyMap());
        
        try
        {
            m_SUT.createPhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT);
            fail("Expecting exception, no factories available");
        }
        catch (CCommException e)
        {
        }
    }
/**
     * Verify physical link cannot be created when factory is unknown to the service. 
     */
Verify physical link cannot be created when factory is unknown to the service.
Verify physical link cannot be created when factory is unknown to the service .
@Test
    public void testCreatePhysicalLinkFactoryUnKnown() throws InterruptedException
    {
        when(m_PhysicalLinkServiceContext.getFactories()).thenReturn(Collections.emptyMap());
        try
        {
            m_SUT.createPhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT);
            fail("Expecting exception, no factories available");
        }
        catch (CCommException e)
        {
        }
    }
@ Test public void testCreatePhysicalLinkFactoryUnKnown ( ) throws InterruptedException { when ( m_PhysicalLinkServiceContext . getFactories ( ) ) . thenReturn ( Collections . emptyMap ( ) ) ; try { m_SUT . createPhysicalLink ( PhysicalLinkTypeEnum . SERIAL_PORT ) ; fail ( "Expecting exception, no factories available" ) ; } catch ( CCommException e ) { } }
Verify physical link cannot be created when factory is unknown to the service.
Verify physical link cannot be created when factory is unknown to the service .