mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestCustomCommsNamespace.java
@After
    public void tearDown() throws IOException, InterruptedException
    {
        try
        {
            // request data to remove the created physical links in setup
            RemotePhysicalLinkUtils.tryRemovePhysicalLink(pLinkUuid, socket);
            RemotePhysicalLinkUtils.tryRemovePhysicalLink(pLinkUuid2, socket);
            
            // verify physical links are gone
            List<SharedMessages.UUID> uuidList = 
                    CustomCommsNamespaceUtils.getLayerUuidsByType(socket, CommType.PhysicalLink);
            assertThat(uuidList.contains(pLinkUuid), is(false));
            assertThat(uuidList.contains(pLinkUuid2), is(false));
            
            MessageListener.unregisterEvent(socket);
        }
        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 IOException, InterruptedException
    {
        try
        {
            RemotePhysicalLinkUtils.tryRemovePhysicalLink(pLinkUuid, socket);
            RemotePhysicalLinkUtils.tryRemovePhysicalLink(pLinkUuid2, socket);
            List<SharedMessages.UUID> uuidList = 
                    CustomCommsNamespaceUtils.getLayerUuidsByType(socket, CommType.PhysicalLink);
            assertThat(uuidList.contains(pLinkUuid), is(false));
            assertThat(uuidList.contains(pLinkUuid2), is(false));
            MessageListener.unregisterEvent(socket);
        }
        finally
        {
            socket.close();
        }
    }
@ After public void tearDown ( ) throws IOException , InterruptedException { try { RemotePhysicalLinkUtils . tryRemovePhysicalLink ( pLinkUuid , socket ) ; RemotePhysicalLinkUtils . tryRemovePhysicalLink ( pLinkUuid2 , socket ) ; List < SharedMessages . UUID > uuidList = CustomCommsNamespaceUtils . getLayerUuidsByType ( socket , CommType . PhysicalLink ) ; assertThat ( uuidList . contains ( pLinkUuid ) , is ( false ) ) ; assertThat ( uuidList . contains ( pLinkUuid2 ) , is ( false ) ) ; MessageListener . unregisterEvent ( socket ) ; } 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 .
// request data to remove the created physical links in setup // verify physical links are gone