mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/utils/AssetTestUtils.java
public static Asset createTestableAsset(final String productType)
        throws IllegalArgumentException, AssetException
    {
        final AssetDirectoryService assetDirectoryService = AssetTestUtils.getAssetDirectoryService();
        
        final Asset asset = assetDirectoryService.createAsset(productType);
        
        assertThat(asset, notNullValue());
        
        return asset;
    }
/**
     * Creates an asset of the specified class through the {@link AssetDirectoryService}. 
     * @param productType
     *  the class of the asset that is to be created.
     * @return
     *  the asset that has been created.
     */
Creates an asset of the specified class through the  AssetDirectoryService.
@param productType
the class of the asset that is to be created.
@return
the asset that has been created.
Creates an asset of the specified class through the AssetDirectoryService . @param productType the class of the asset that is to be created . @return the asset that has been created .
public static Asset createTestableAsset(final String productType)
        throws IllegalArgumentException, AssetException
    {
        final AssetDirectoryService assetDirectoryService = AssetTestUtils.getAssetDirectoryService();
        final Asset asset = assetDirectoryService.createAsset(productType);
        assertThat(asset, notNullValue());
        return asset;
    }
public static Asset createTestableAsset ( final String productType ) throws IllegalArgumentException , AssetException { final AssetDirectoryService assetDirectoryService = AssetTestUtils . getAssetDirectoryService ( ) ; final Asset asset = assetDirectoryService . createAsset ( productType ) ; assertThat ( asset , notNullValue ( ) ) ; return asset ; }
Creates an asset of the specified class through the {@link AssetDirectoryService}.
Creates an asset of the specified class through the { @link AssetDirectoryService } .