mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestCustomCommsServiceImpl_LinkLayer.java
@Test
    public void testCreateLinkLayer_PhysicalLinkRequired() throws Exception
    {
        m_LinkLayerCapabilities.setPhysicalLinkRequired(true);
        
        try
        {
            m_SUT.createLinkLayer(LL_PRODUCT_TYPE, null);
            fail("Expecting exception as physical link is required, but not provided");
        }
        catch (IllegalArgumentException e)
        {
            
        }
    }
/**
     * Verify a link layer fails to be created if physical link is required, but not provided.
     */
Verify a link layer fails to be created if physical link is required, but not provided.
Verify a link layer fails to be created if physical link is required but not provided .
@Test
    public void testCreateLinkLayer_PhysicalLinkRequired() throws Exception
    {
        m_LinkLayerCapabilities.setPhysicalLinkRequired(true);
        try
        {
            m_SUT.createLinkLayer(LL_PRODUCT_TYPE, null);
            fail("Expecting exception as physical link is required, but not provided");
        }
        catch (IllegalArgumentException e)
        {
        }
    }
@ Test public void testCreateLinkLayer_PhysicalLinkRequired ( ) throws Exception { m_LinkLayerCapabilities . setPhysicalLinkRequired ( true ) ; try { m_SUT . createLinkLayer ( LL_PRODUCT_TYPE , null ) ; fail ( "Expecting exception as physical link is required, but not provided" ) ; } catch ( IllegalArgumentException e ) { } }
Verify a link layer fails to be created if physical link is required, but not provided.
Verify a link layer fails to be created if physical link is required but not provided .