mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/utils/AssetTestUtils.java
public static Asset verifyActivateDeactivateAsset(
            final String productType, final int timeout)
        throws IllegalArgumentException, AssetException, InterruptedException
    {
        final Asset assetToVerify = createTestableActivatedAsset(productType, timeout);
        
        deactivateAsset(assetToVerify);

        return assetToVerify;
    }
/**
     * Verifies the asset of the specified class can be activated and deactivated.
     * @param productType
     *  the class of the asset that needs to be instantiated.
     * @param timeout
     *  how long to wait for the activate and deactivate events
     * @return
     *  the asset that was created as a result of checking if asset could be activated or deactivated.
     */
Verifies the asset of the specified class can be activated and deactivated.
@param productType
the class of the asset that needs to be instantiated.
@param timeout
how long to wait for the activate and deactivate events
@return
the asset that was created as a result of checking if asset could be activated or deactivated.
Verifies the asset of the specified class can be activated and deactivated . @param productType the class of the asset that needs to be instantiated . @param timeout how long to wait for the activate and deactivate events @return the asset that was created as a result of checking if asset could be activated or deactivated .
public static Asset verifyActivateDeactivateAsset(
            final String productType, final int timeout)
        throws IllegalArgumentException, AssetException, InterruptedException
    {
        final Asset assetToVerify = createTestableActivatedAsset(productType, timeout);
        deactivateAsset(assetToVerify);
        return assetToVerify;
    }
public static Asset verifyActivateDeactivateAsset ( final String productType , final int timeout ) throws IllegalArgumentException , AssetException , InterruptedException { final Asset assetToVerify = createTestableActivatedAsset ( productType , timeout ) ; deactivateAsset ( assetToVerify ) ; return assetToVerify ; }
Verifies the asset of the specified class can be activated and deactivated.
Verifies the asset of the specified class can be activated and deactivated .