mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestCustomCommsService.java
public void testTryCreatePhysicalLink() throws IllegalArgumentException, IOException, InterruptedException, 
        CCommException, IllegalStateException, FactoryException, PersistenceFailedException, PhysicalLinkException
    {
        String physicalLinkName = "PhysicalLinkTest";
        CustomCommsService customCommsService = ServiceUtils.getService(m_Context, CustomCommsService.class);
        assertThat(customCommsService, is(notNullValue()));
        
        UUID linkUuid = customCommsService.tryCreatePhysicalLink(PhysicalLinkTypeEnum.I_2_C, physicalLinkName);
        assertThat(linkUuid, is(notNullValue()));
        
        //request the link
        PhysicalLink link = customCommsService.requestPhysicalLink(physicalLinkName);
        
        assertThat(linkUuid, is(link.getUuid()));
        
        //try to create a physical link of the same type, with the same name
        UUID linkUuidReplay = customCommsService.tryCreatePhysicalLink(PhysicalLinkTypeEnum.I_2_C, physicalLinkName);
        assertThat(linkUuidReplay, is(linkUuid));
    }
/**
     * Test that if a physical link can be created by calling 
     * {@link CustomCommsService#tryCreatePhysicalLink(PhysicalLinkTypeEnum, String)}.
     * Verify once a physical link is made that if the aforementioned method is called again that the already created
     * link is returned. 
     */
Test that if a physical link can be created by calling
CustomCommsService#tryCreatePhysicalLink(PhysicalLinkTypeEnum, String).
Verify once a physical link is made that if the aforementioned method is called again that the already created
link is returned.
Test that if a physical link can be created by calling CustomCommsService#tryCreatePhysicalLink ( PhysicalLinkTypeEnum String ) . Verify once a physical link is made that if the aforementioned method is called again that the already created link is returned .
public void testTryCreatePhysicalLink() throws IllegalArgumentException, IOException, InterruptedException, 
        CCommException, IllegalStateException, FactoryException, PersistenceFailedException, PhysicalLinkException
    {
        String physicalLinkName = "PhysicalLinkTest";
        CustomCommsService customCommsService = ServiceUtils.getService(m_Context, CustomCommsService.class);
        assertThat(customCommsService, is(notNullValue()));
        UUID linkUuid = customCommsService.tryCreatePhysicalLink(PhysicalLinkTypeEnum.I_2_C, physicalLinkName);
        assertThat(linkUuid, is(notNullValue()));
        PhysicalLink link = customCommsService.requestPhysicalLink(physicalLinkName);
        assertThat(linkUuid, is(link.getUuid()));
        UUID linkUuidReplay = customCommsService.tryCreatePhysicalLink(PhysicalLinkTypeEnum.I_2_C, physicalLinkName);
        assertThat(linkUuidReplay, is(linkUuid));
    }
public void testTryCreatePhysicalLink ( ) throws IllegalArgumentException , IOException , InterruptedException , CCommException , IllegalStateException , FactoryException , PersistenceFailedException , PhysicalLinkException { String physicalLinkName = "PhysicalLinkTest" ; CustomCommsService customCommsService = ServiceUtils . getService ( m_Context , CustomCommsService . class ) ; assertThat ( customCommsService , is ( notNullValue ( ) ) ) ; UUID linkUuid = customCommsService . tryCreatePhysicalLink ( PhysicalLinkTypeEnum . I_2_C , physicalLinkName ) ; assertThat ( linkUuid , is ( notNullValue ( ) ) ) ; PhysicalLink link = customCommsService . requestPhysicalLink ( physicalLinkName ) ; assertThat ( linkUuid , is ( link . getUuid ( ) ) ) ; UUID linkUuidReplay = customCommsService . tryCreatePhysicalLink ( PhysicalLinkTypeEnum . I_2_C , physicalLinkName ) ; assertThat ( linkUuidReplay , is ( linkUuid ) ) ; }
Test that if a physical link can be created by calling
 {@link CustomCommsService#tryCreatePhysicalLink(PhysicalLinkTypeEnum, String)}.
Test that if a physical link can be created by calling { @link CustomCommsService#tryCreatePhysicalLink ( PhysicalLinkTypeEnum String ) } .
//request the link //try to create a physical link of the same type, with the same name