mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestFactoryObject.java
public void testSetPropertes_SlowUpdateAsset() throws Exception
    {
        AssetDirectoryService assetDirectoryService = ServiceUtils.getService(m_Context, AssetDirectoryService.class);
        assertThat(assetDirectoryService, is(notNullValue()));
        
        Asset asset = assetDirectoryService.createAsset(ExampleSlowUpdateAsset.class.getName());
        
        Map<String, Object> properties = asset.getProperties();
        properties.put(ExampleSlowUpdateAssetAttributes.KEY_EXAMPLE_PROP, "DIFFERENT VERY DIFFERENT!");
        asset.setProperties(properties);

        AssetUtils.activateAsset(m_Context, asset, 5);
        
        AssetUtils.deactivateAsset(m_Context, asset);
    }
/**
     * Verify that even if an object's 
     * {@link mil.dod.th.core.factory.FactoryObjectProxy#updated(java.util.Map)} 
     * call is lengthy that the setProperty call does not return until the process has completed.
     */
Verify that even if an object's
mil.dod.th.core.factory.FactoryObjectProxy#updated(java.util.Map)
call is lengthy that the setProperty call does not return until the process has completed.
Verify that even if an object ' s mil . dod . th . core . factory . FactoryObjectProxy#updated ( java . util . Map ) call is lengthy that the setProperty call does not return until the process has completed .
public void testSetPropertes_SlowUpdateAsset() throws Exception
    {
        AssetDirectoryService assetDirectoryService = ServiceUtils.getService(m_Context, AssetDirectoryService.class);
        assertThat(assetDirectoryService, is(notNullValue()));
        Asset asset = assetDirectoryService.createAsset(ExampleSlowUpdateAsset.class.getName());
        Map<String, Object> properties = asset.getProperties();
        properties.put(ExampleSlowUpdateAssetAttributes.KEY_EXAMPLE_PROP, "DIFFERENT VERY DIFFERENT!");
        asset.setProperties(properties);
        AssetUtils.activateAsset(m_Context, asset, 5);
        AssetUtils.deactivateAsset(m_Context, asset);
    }
public void testSetPropertes_SlowUpdateAsset ( ) throws Exception { AssetDirectoryService assetDirectoryService = ServiceUtils . getService ( m_Context , AssetDirectoryService . class ) ; assertThat ( assetDirectoryService , is ( notNullValue ( ) ) ) ; Asset asset = assetDirectoryService . createAsset ( ExampleSlowUpdateAsset . class . getName ( ) ) ; Map < String , Object > properties = asset . getProperties ( ) ; properties . put ( ExampleSlowUpdateAssetAttributes . KEY_EXAMPLE_PROP , "DIFFERENT VERY DIFFERENT!" ) ; asset . setProperties ( properties ) ; AssetUtils . activateAsset ( m_Context , asset , 5 ) ; AssetUtils . deactivateAsset ( m_Context , asset ) ; }
Verify that even if an object's
 {@link mil.dod.th.core.factory.FactoryObjectProxy#updated(java.util.Map)}
 call is lengthy that the setProperty call does not return until the process has completed.
Verify that even if an object ' s { @link mil . dod . th . core . factory . FactoryObjectProxy#updated ( java . util . Map ) } call is lengthy that the setProperty call does not return until the process has completed .