mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestCustomCommsNamespace.java
@Test
    public void testSetPhysName() throws IOException, InterruptedException
    {
        //set the name
        CustomCommsNamespaceUtils.setCommLayerName(socket, pLinkUuid, CommType.PhysicalLink, "wallabeeeees");

        //get the layer's name
        GetLayerNameResponseData responseData  = 
             CustomCommsNamespaceUtils.getCommLayerName(socket, pLinkUuid, CommType.PhysicalLink);
        
        //verify
        assertThat(responseData.getLayerName(), is("wallabeeeees"));
        assertThat(responseData.getCommType(), is(CommType.PhysicalLink));
        
        //set the name back
        CustomCommsNamespaceUtils.setCommLayerName(socket, pLinkUuid, CommType.PhysicalLink, "honeybadger");
    }
/**
     * Test setting the name of a physical layer.
     * Verify that the name is the expected value.
     */
Test setting the name of a physical layer.
Verify that the name is the expected value.
Test setting the name of a physical layer . Verify that the name is the expected value .
@Test
    public void testSetPhysName() throws IOException, InterruptedException
    {
        CustomCommsNamespaceUtils.setCommLayerName(socket, pLinkUuid, CommType.PhysicalLink, "wallabeeeees");
        GetLayerNameResponseData responseData  = 
             CustomCommsNamespaceUtils.getCommLayerName(socket, pLinkUuid, CommType.PhysicalLink);
        assertThat(responseData.getLayerName(), is("wallabeeeees"));
        assertThat(responseData.getCommType(), is(CommType.PhysicalLink));
         back
        CustomCommsNamespaceUtils.setCommLayerName(socket, pLinkUuid, CommType.PhysicalLink, "honeybadger");
    }
@ Test public void testSetPhysName ( ) throws IOException , InterruptedException { CustomCommsNamespaceUtils . setCommLayerName ( socket , pLinkUuid , CommType . PhysicalLink , "wallabeeeees" ) ; GetLayerNameResponseData responseData = CustomCommsNamespaceUtils . getCommLayerName ( socket , pLinkUuid , CommType . PhysicalLink ) ; assertThat ( responseData . getLayerName ( ) , is ( "wallabeeeees" ) ) ; assertThat ( responseData . getCommType ( ) , is ( CommType . PhysicalLink ) ) ; CustomCommsNamespaceUtils . setCommLayerName ( socket , pLinkUuid , CommType . PhysicalLink , "honeybadger" ) ; }
Test setting the name of a physical layer.
Test setting the name of a physical layer .
//set the name //get the layer's name //verify //set the name back