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, final Map<String, Object> props) throws IllegalArgumentException, AssetException, 
                InterruptedException, IllegalStateException, FactoryException
    {
        final Asset assetToVerify = createTestableActivatedAsset(productType, props, 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
     * @param props
     *  properties to be passed to the asset at the time of creation
     * @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
@param props
properties to be passed to the asset at the time of creation
@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 @param props properties to be passed to the asset at the time of creation @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, final Map<String, Object> props) throws IllegalArgumentException, AssetException, 
                InterruptedException, IllegalStateException, FactoryException
    {
        final Asset assetToVerify = createTestableActivatedAsset(productType, props, timeout);
        deactivateAsset(assetToVerify);
        return assetToVerify;
    }
public static Asset verifyActivateDeactivateAsset ( final String productType , final int timeout , final Map < String , Object > props ) throws IllegalArgumentException , AssetException , InterruptedException , IllegalStateException , FactoryException { final Asset assetToVerify = createTestableActivatedAsset ( productType , props , 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 .