mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestRemoteChannelLookupNamespace.java
@After
    public void tearDown() throws Exception
    {
        try
        {
            Exception theFirstException = null;
            try
            {
                // cleanup
                RemoteTransportLayerUtils.removeTransportLayer(transportUuid, socket);
            }
            catch (Exception e)
            {
                if (theFirstException == null)
                {
                    theFirstException = e;
                }
            }
            try
            {
                RemoteLinkLayerUtils.removeLink(linkUuid, socket);
            }
            catch (Exception e)
            {
                if (theFirstException == null)
                {
                    theFirstException = e;
                }
            }

            RemotePhysicalLinkUtils.tryRemovePhysicalLink(pLinkUuid, socket);

            try
            {
                MessageListener.unregisterEvent(socket); 
            }
            catch (Exception e)
            {
                if (theFirstException == null)
                {
                    theFirstException = e;
                }
            }
            if (theFirstException != null)
            {
                throw theFirstException;
            }
        }
        finally
        {
            socket.close();
        }
    }
/**
     * Remove both physical links created in setup, verify they are removed.
     */
Remove both physical links created in setup, verify they are removed.
Remove both physical links created in setup verify they are removed .
@After
    public void tearDown() throws Exception
    {
        try
        {
            Exception theFirstException = null;
            try
            {
                RemoteTransportLayerUtils.removeTransportLayer(transportUuid, socket);
            }
            catch (Exception e)
            {
                if (theFirstException == null)
                {
                    theFirstException = e;
                }
            }
            try
            {
                RemoteLinkLayerUtils.removeLink(linkUuid, socket);
            }
            catch (Exception e)
            {
                if (theFirstException == null)
                {
                    theFirstException = e;
                }
            }
            RemotePhysicalLinkUtils.tryRemovePhysicalLink(pLinkUuid, socket);
            try
            {
                MessageListener.unregisterEvent(socket); 
            }
            catch (Exception e)
            {
                if (theFirstException == null)
                {
                    theFirstException = e;
                }
            }
            if (theFirstException != null)
            {
                throw theFirstException;
            }
        }
        finally
        {
            socket.close();
        }
    }
@ After public void tearDown ( ) throws Exception { try { Exception theFirstException = null ; try { RemoteTransportLayerUtils . removeTransportLayer ( transportUuid , socket ) ; } catch ( Exception e ) { if ( theFirstException == null ) { theFirstException = e ; } } try { RemoteLinkLayerUtils . removeLink ( linkUuid , socket ) ; } catch ( Exception e ) { if ( theFirstException == null ) { theFirstException = e ; } } RemotePhysicalLinkUtils . tryRemovePhysicalLink ( pLinkUuid , socket ) ; try { MessageListener . unregisterEvent ( socket ) ; } catch ( Exception e ) { if ( theFirstException == null ) { theFirstException = e ; } } if ( theFirstException != null ) { throw theFirstException ; } } finally { socket . close ( ) ; } }
Remove both physical links created in setup, verify they are removed.
Remove both physical links created in setup verify they are removed .
// cleanup