mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestCustomCommsServiceImpl_LinkLayer.java
@Test
    public void testIsLinkLayerCreated() throws CCommException, IOException, InterruptedException, FactoryException,
        IllegalArgumentException, FactoryObjectInformationException
    {
        String linkName = "link";
        
        //reg mocking
        when(m_LinkRegistry.isObjectCreated(linkName)).thenReturn(true);
        
        //assert
        assertThat(m_SUT.isLinkLayerCreated(linkName), is(true));
    }
/**
     * Verify that the a link layer returns the expected results to the request to find out if the layer is created.
     */
Verify that the a link layer returns the expected results to the request to find out if the layer is created.
Verify that the a link layer returns the expected results to the request to find out if the layer is created .
@Test
    public void testIsLinkLayerCreated() throws CCommException, IOException, InterruptedException, FactoryException,
        IllegalArgumentException, FactoryObjectInformationException
    {
        String linkName = "link";
        when(m_LinkRegistry.isObjectCreated(linkName)).thenReturn(true);
        assertThat(m_SUT.isLinkLayerCreated(linkName), is(true));
    }
@ Test public void testIsLinkLayerCreated ( ) throws CCommException , IOException , InterruptedException , FactoryException , IllegalArgumentException , FactoryObjectInformationException { String linkName = "link" ; when ( m_LinkRegistry . isObjectCreated ( linkName ) ) . thenReturn ( true ) ; assertThat ( m_SUT . isLinkLayerCreated ( linkName ) , is ( true ) ) ; }
Verify that the a link layer returns the expected results to the request to find out if the layer is created.
Verify that the a link layer returns the expected results to the request to find out if the layer is created .
//reg mocking //assert