mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestAssetDirectoryService.java
public final void testAdd() throws Exception
    {
        AssetDirectoryService assetDirectoryService = ServiceUtils.getService(m_Context, AssetDirectoryService.class);
        assertThat(assetDirectoryService, is(notNullValue()));

        assetDirectoryService.createAsset(ExampleAsset.class.getName());
        
        Set<Asset> exampleAssets = assetDirectoryService.getAssetsByType(ExampleAsset.class.getName());
        assertThat(exampleAssets.size(), is(1));
    }
/**
     * Verify that assets can be added.
     */
Verify that assets can be added.
Verify that assets can be added .
public final void testAdd() throws Exception
    {
        AssetDirectoryService assetDirectoryService = ServiceUtils.getService(m_Context, AssetDirectoryService.class);
        assertThat(assetDirectoryService, is(notNullValue()));
        assetDirectoryService.createAsset(ExampleAsset.class.getName());
        Set<Asset> exampleAssets = assetDirectoryService.getAssetsByType(ExampleAsset.class.getName());
        assertThat(exampleAssets.size(), is(1));
    }
public final void testAdd ( ) throws Exception { AssetDirectoryService assetDirectoryService = ServiceUtils . getService ( m_Context , AssetDirectoryService . class ) ; assertThat ( assetDirectoryService , is ( notNullValue ( ) ) ) ; assetDirectoryService . createAsset ( ExampleAsset . class . getName ( ) ) ; Set < Asset > exampleAssets = assetDirectoryService . getAssetsByType ( ExampleAsset . class . getName ( ) ) ; assertThat ( exampleAssets . size ( ) , is ( 1 ) ) ; }
Verify that assets can be added.
Verify that assets can be added .