mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestPhysicalLinkNamespace.java
@After
    public void tearDown() throws IOException, InterruptedException
    {
        try
        {
            RemotePhysicalLinkUtils.tryRemovePhysicalLink(testUuid, socket);
            // verify physical link is gone
            List<SharedMessages.UUID> uuidList = CustomCommsNamespaceUtils.getLayerUuidsByType(socket, 
                    CommType.PhysicalLink);
            assertThat(uuidList.contains(testUuid), is(false));
            MessageListener.unregisterEvent(socket);
        }
        finally
        {
            socket.close();
        }
    }
/**
     * Assuming a link layer was created and activated that is associated with the physical link created in setup.
     * Deactivate and remove the link layer. Remove the physical link and verify it is removed.
     */
Assuming a link layer was created and activated that is associated with the physical link created in setup.
Deactivate and remove the link layer. Remove the physical link and verify it is removed.
Assuming a link layer was created and activated that is associated with the physical link created in setup . Deactivate and remove the link layer . Remove the physical link and verify it is removed .
@After
    public void tearDown() throws IOException, InterruptedException
    {
        try
        {
            RemotePhysicalLinkUtils.tryRemovePhysicalLink(testUuid, socket);
            List<SharedMessages.UUID> uuidList = CustomCommsNamespaceUtils.getLayerUuidsByType(socket, 
                    CommType.PhysicalLink);
            assertThat(uuidList.contains(testUuid), is(false));
            MessageListener.unregisterEvent(socket);
        }
        finally
        {
            socket.close();
        }
    }
@ After public void tearDown ( ) throws IOException , InterruptedException { try { RemotePhysicalLinkUtils . tryRemovePhysicalLink ( testUuid , socket ) ; List < SharedMessages . UUID > uuidList = CustomCommsNamespaceUtils . getLayerUuidsByType ( socket , CommType . PhysicalLink ) ; assertThat ( uuidList . contains ( testUuid ) , is ( false ) ) ; MessageListener . unregisterEvent ( socket ) ; } finally { socket . close ( ) ; } }
Assuming a link layer was created and activated that is associated with the physical link created in setup.
Assuming a link layer was created and activated that is associated with the physical link created in setup .
// verify physical link is gone