mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/utils/AssetTestUtils.java
public static Asset createTestableActivatedAsset(final String productType, final int timeout)
        throws IllegalArgumentException, AssetException, InterruptedException
    {
        final Asset asset = createTestableAsset(productType);
        
        assertThat(asset, notNullValue());
        
        activateAsset(asset, timeout);

        return asset;
    }
/**
     * Creates an asset of the specified class through the {@link AssetDirectoryService}. Once created the 
     * asset will be activated.
     * @param productType
     *  the class of the asset that is to be created.
     * @param timeout
     *      how long to wait for the asset to activate 
     * @return
     *  the asset that has been created.
     */
Creates an asset of the specified class through the  AssetDirectoryService. Once created the
asset will be activated.
@param productType
the class of the asset that is to be created.
@param timeout
how long to wait for the asset to activate
@return
the asset that has been created.
Creates an asset of the specified class through the AssetDirectoryService . Once created the asset will be activated . @param productType the class of the asset that is to be created . @param timeout how long to wait for the asset to activate @return the asset that has been created .
public static Asset createTestableActivatedAsset(final String productType, final int timeout)
        throws IllegalArgumentException, AssetException, InterruptedException
    {
        final Asset asset = createTestableAsset(productType);
        assertThat(asset, notNullValue());
        activateAsset(asset, timeout);
        return asset;
    }
public static Asset createTestableActivatedAsset ( final String productType , final int timeout ) throws IllegalArgumentException , AssetException , InterruptedException { final Asset asset = createTestableAsset ( productType ) ; assertThat ( asset , notNullValue ( ) ) ; activateAsset ( asset , timeout ) ; return asset ; }
Creates an asset of the specified class through the {@link AssetDirectoryService}.
Creates an asset of the specified class through the { @link AssetDirectoryService } .