mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestObservationStoreMessageService.java
@After
    public void teardown() throws UnknownHostException, IOException, InterruptedException
    {
        try
        {
            if (assetUuid == null)
            {
                // failed to create from before, probably still there from before
                FactoryObjectInfo info = AssetNamespaceUtils.tryGetAssetInfoByName(socket, OBS_ASSET_NAME);
                if (info != null)
                {
                    // asset still here from before
                    assetUuid = info.getUuid();
                    AssetNamespaceUtils.removeAsset(socket, assetUuid);
                }
            }
            else
            {
                AssetNamespaceUtils.removeAsset(socket, assetUuid);
            }
        }
        finally
        {
            socket.close();
        }
    }
/**
     * Removes the example asset used for creating observations. 
     */
Removes the example asset used for creating observations.
Removes the example asset used for creating observations .
@After
    public void teardown() throws UnknownHostException, IOException, InterruptedException
    {
        try
        {
            if (assetUuid == null)
            {
                FactoryObjectInfo info = AssetNamespaceUtils.tryGetAssetInfoByName(socket, OBS_ASSET_NAME);
                if (info != null)
                {
                    assetUuid = info.getUuid();
                    AssetNamespaceUtils.removeAsset(socket, assetUuid);
                }
            }
            else
            {
                AssetNamespaceUtils.removeAsset(socket, assetUuid);
            }
        }
        finally
        {
            socket.close();
        }
    }
@ After public void teardown ( ) throws UnknownHostException , IOException , InterruptedException { try { if ( assetUuid == null ) { FactoryObjectInfo info = AssetNamespaceUtils . tryGetAssetInfoByName ( socket , OBS_ASSET_NAME ) ; if ( info != null ) { assetUuid = info . getUuid ( ) ; AssetNamespaceUtils . removeAsset ( socket , assetUuid ) ; } } else { AssetNamespaceUtils . removeAsset ( socket , assetUuid ) ; } } finally { socket . close ( ) ; } }
Removes the example asset used for creating observations.
Removes the example asset used for creating observations .
// failed to create from before, probably still there from before // asset still here from before