mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestCustomCommsServiceImpl_Physical.java
@Test
    public void testGetPhysicalLinkName() throws IllegalArgumentException, CCommException, 
        FactoryObjectInformationException
    {
        String name = "name";
        
        PhysicalLink phys = m_SUT.createPhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT, name);

        //mocking
        when(m_PhysRegistry.getObjectByUuid(phys.getUuid())).thenReturn(m_PhysInternal);
        when(m_PhysInternal.getName()).thenReturn(name);
        
        String nameRetvd = m_SUT.getPhysicalLinkName(phys.getUuid());
        
        //assert
        assertThat(nameRetvd, is(name));
    }
/**
     * Verify that a physical link name can be retrieved with the uuid of the physical link
     */
Verify that a physical link name can be retrieved with the uuid of the physical link
Verify that a physical link name can be retrieved with the uuid of the physical link
@Test
    public void testGetPhysicalLinkName() throws IllegalArgumentException, CCommException, 
        FactoryObjectInformationException
    {
        String name = "name";
        PhysicalLink phys = m_SUT.createPhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT, name);
        when(m_PhysRegistry.getObjectByUuid(phys.getUuid())).thenReturn(m_PhysInternal);
        when(m_PhysInternal.getName()).thenReturn(name);
        String nameRetvd = m_SUT.getPhysicalLinkName(phys.getUuid());
        assertThat(nameRetvd, is(name));
    }
@ Test public void testGetPhysicalLinkName ( ) throws IllegalArgumentException , CCommException , FactoryObjectInformationException { String name = "name" ; PhysicalLink phys = m_SUT . createPhysicalLink ( PhysicalLinkTypeEnum . SERIAL_PORT , name ) ; when ( m_PhysRegistry . getObjectByUuid ( phys . getUuid ( ) ) ) . thenReturn ( m_PhysInternal ) ; when ( m_PhysInternal . getName ( ) ) . thenReturn ( name ) ; String nameRetvd = m_SUT . getPhysicalLinkName ( phys . getUuid ( ) ) ; assertThat ( nameRetvd , is ( name ) ) ; }
Verify that a physical link name can be retrieved with the uuid of the physical link
Verify that a physical link name can be retrieved with the uuid of the physical link
//mocking //assert