mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestTransportLayerNamespace.java
@After
    public void tearDown() throws IOException, InterruptedException
    {
        try
        {
            //------Remove transport layer--------
            RemoteTransportLayerUtils.removeTransportLayer(transportUuid, socket);
            
            //------Remove link layer--------
            RemoteLinkLayerUtils.removeLink(linkUuid, socket);
            
            //------Remove physical link--------
            RemotePhysicalLinkUtils.tryRemovePhysicalLink(pLinkUuid, socket);

            // verify physical link, link layer, and transport layer are gone
            List<SharedMessages.UUID> uuidList = CustomCommsNamespaceUtils.getLayerUuidsByType(socket, 
                    CommType.PhysicalLink);
            assertThat(uuidList.contains(pLinkUuid), is(false));
            
            uuidList = CustomCommsNamespaceUtils.getLayerUuidsByType(socket, CommType.Linklayer);
            assertThat(uuidList.contains(linkUuid), is(false));
            
            uuidList = CustomCommsNamespaceUtils.getLayerUuidsByType(socket, CommType.TransportLayer);
            assertThat(uuidList.contains(transportUuid), is(false));
        }
        finally
        {
            socket.close();
        }
    }
/**
     * Remove the physical link, link layer, and transport layer that were created in setup, verify they are gone.
     */
Remove the physical link, link layer, and transport layer that were created in setup, verify they are gone.
Remove the physical link link layer and transport layer that were created in setup verify they are gone .
@After
    public void tearDown() throws IOException, InterruptedException
    {
        try
        {
            RemoteTransportLayerUtils.removeTransportLayer(transportUuid, socket);
            RemoteLinkLayerUtils.removeLink(linkUuid, socket);
            RemotePhysicalLinkUtils.tryRemovePhysicalLink(pLinkUuid, socket);
            List<SharedMessages.UUID> uuidList = CustomCommsNamespaceUtils.getLayerUuidsByType(socket, 
                    CommType.PhysicalLink);
            assertThat(uuidList.contains(pLinkUuid), is(false));
            uuidList = CustomCommsNamespaceUtils.getLayerUuidsByType(socket, CommType.Linklayer);
            assertThat(uuidList.contains(linkUuid), is(false));
            uuidList = CustomCommsNamespaceUtils.getLayerUuidsByType(socket, CommType.TransportLayer);
            assertThat(uuidList.contains(transportUuid), is(false));
        }
        finally
        {
            socket.close();
        }
    }
@ After public void tearDown ( ) throws IOException , InterruptedException { try { RemoteTransportLayerUtils . removeTransportLayer ( transportUuid , socket ) ; RemoteLinkLayerUtils . removeLink ( linkUuid , socket ) ; RemotePhysicalLinkUtils . tryRemovePhysicalLink ( pLinkUuid , socket ) ; List < SharedMessages . UUID > uuidList = CustomCommsNamespaceUtils . getLayerUuidsByType ( socket , CommType . PhysicalLink ) ; assertThat ( uuidList . contains ( pLinkUuid ) , is ( false ) ) ; uuidList = CustomCommsNamespaceUtils . getLayerUuidsByType ( socket , CommType . Linklayer ) ; assertThat ( uuidList . contains ( linkUuid ) , is ( false ) ) ; uuidList = CustomCommsNamespaceUtils . getLayerUuidsByType ( socket , CommType . TransportLayer ) ; assertThat ( uuidList . contains ( transportUuid ) , is ( false ) ) ; } finally { socket . close ( ) ; } }
Remove the physical link, link layer, and transport layer that were created in setup, verify they are gone.
Remove the physical link link layer and transport layer that were created in setup verify they are gone .
//------Remove transport layer-------- //------Remove link layer-------- //------Remove physical link-------- // verify physical link, link layer, and transport layer are gone