mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestCustomCommsNamespace_LinkLayer.java
@Test
    public void testSetLinkName() throws IOException, InterruptedException
    {
        //set the name
        CustomCommsNamespaceUtils.setCommLayerName(socket, linkUuid, CommType.Linklayer, "kangaroos");

        //verify
        GetLayerNameResponseData responseData  = 
             CustomCommsNamespaceUtils.getCommLayerName(socket, linkUuid, CommType.Linklayer);
        
        //verify
        assertThat(responseData.getLayerName(), is("kangaroos"));
        assertThat(responseData.getCommType(), is(CommType.Linklayer));
        
        //cleanup
        CustomCommsNamespaceUtils.setCommLayerName(socket, linkUuid, CommType.Linklayer, "yarrr");
    }
/**
     * Test setting the name of a Link layer.
     * Verify that the name is the expected value.
     */
Test setting the name of a Link layer.
Verify that the name is the expected value.
Test setting the name of a Link layer . Verify that the name is the expected value .
@Test
    public void testSetLinkName() throws IOException, InterruptedException
    {
        CustomCommsNamespaceUtils.setCommLayerName(socket, linkUuid, CommType.Linklayer, "kangaroos");
        GetLayerNameResponseData responseData  = 
             CustomCommsNamespaceUtils.getCommLayerName(socket, linkUuid, CommType.Linklayer);
        assertThat(responseData.getLayerName(), is("kangaroos"));
        assertThat(responseData.getCommType(), is(CommType.Linklayer));
        CustomCommsNamespaceUtils.setCommLayerName(socket, linkUuid, CommType.Linklayer, "yarrr");
    }
@ Test public void testSetLinkName ( ) throws IOException , InterruptedException { CustomCommsNamespaceUtils . setCommLayerName ( socket , linkUuid , CommType . Linklayer , "kangaroos" ) ; GetLayerNameResponseData responseData = CustomCommsNamespaceUtils . getCommLayerName ( socket , linkUuid , CommType . Linklayer ) ; assertThat ( responseData . getLayerName ( ) , is ( "kangaroos" ) ) ; assertThat ( responseData . getCommType ( ) , is ( CommType . Linklayer ) ) ; CustomCommsNamespaceUtils . setCommLayerName ( socket , linkUuid , CommType . Linklayer , "yarrr" ) ; }
Test setting the name of a Link layer.
Test setting the name of a Link layer .
//set the name //verify //verify //cleanup