mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/utils/AssetTestUtils.java
public static void deleteAllAssets() throws IllegalStateException
    {
        AssetDirectoryService assetDirectoryService = IntegrationTestRunner.getService(AssetDirectoryService.class);
        final List<String> errAssetNames = new ArrayList<>();
        boolean didError = false;
        for (Asset asset : assetDirectoryService.getAssets())
        {
            try
            {
                deleteAsset(asset);
            }
            catch (Exception e)
            {
                didError = true;
                errAssetNames.add(asset.getName() + ", ");
                Logging.log(LogService.LOG_ERROR, "Unable to remove asset %s", asset.getName());
            }
        }
        if (didError)
        {
            throw new IllegalStateException("One or more assets failed to be removed, their names are: " 
                    + Joiner.on(',').join(errAssetNames));
        }
    }
/**
     * Deletes all assets from the controller by calling {@link #deleteAsset(Asset)} for each asset known to the 
     * {@link AssetDirectoryService}. This should used for final cleanup and THROWs an exception at the end, with all
     * the asset names that failed to be removed.
     * @exception IllegalStateException
     *  if one or more assets fail to be removed
     */
Deletes all assets from the controller by calling  #deleteAsset(Asset) for each asset known to the
AssetDirectoryService. This should used for final cleanup and THROWs an exception at the end, with all
the asset names that failed to be removed.
@exception IllegalStateException
if one or more assets fail to be removed
Deletes all assets from the controller by calling #deleteAsset ( Asset ) for each asset known to the AssetDirectoryService . This should used for final cleanup and THROWs an exception at the end with all the asset names that failed to be removed . @exception IllegalStateException if one or more assets fail to be removed
public static void deleteAllAssets() throws IllegalStateException
    {
        AssetDirectoryService assetDirectoryService = IntegrationTestRunner.getService(AssetDirectoryService.class);
        final List<String> errAssetNames = new ArrayList<>();
        boolean didError = false;
        for (Asset asset : assetDirectoryService.getAssets())
        {
            try
            {
                deleteAsset(asset);
            }
            catch (Exception e)
            {
                didError = true;
                errAssetNames.add(asset.getName() + ", ");
                Logging.log(LogService.LOG_ERROR, "Unable to remove asset %s", asset.getName());
            }
        }
        if (didError)
        {
            throw new IllegalStateException("One or more assets failed to be removed, their names are: " 
                    + Joiner.on(',').join(errAssetNames));
        }
    }
public static void deleteAllAssets ( ) throws IllegalStateException { AssetDirectoryService assetDirectoryService = IntegrationTestRunner . getService ( AssetDirectoryService . class ) ; final List < String > errAssetNames = new ArrayList < > ( ) ; boolean didError = false ; for ( Asset asset : assetDirectoryService . getAssets ( ) ) { try { deleteAsset ( asset ) ; } catch ( Exception e ) { didError = true ; errAssetNames . add ( asset . getName ( ) + ", " ) ; Logging . log ( LogService . LOG_ERROR , "Unable to remove asset %s" , asset . getName ( ) ) ; } } if ( didError ) { throw new IllegalStateException ( "One or more assets failed to be removed, their names are: " + Joiner . on ( ',' ) . join ( errAssetNames ) ) ; } }
Deletes all assets from the controller by calling {@link #deleteAsset(Asset)} for each asset known to the
 {@link AssetDirectoryService}.
Deletes all assets from the controller by calling { @link #deleteAsset ( Asset ) } for each asset known to the { @link AssetDirectoryService } .