mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestAssetDirectoryService.java
public void testCaptureDataWithSensorIdException() throws Exception
    {
        AssetDirectoryService assetDirectoryService = ServiceUtils.getService(m_Context, AssetDirectoryService.class);
        
        Asset asset = assetDirectoryService.createAsset(ExampleAsset.class.getName());
        
        try
        {
            asset.captureData("sensor-id");
            fail("expecting exception");
        }
        catch (AssetException e)
        {
            // Expected
        }
    }
/**
     * Verify exception is thrown if the asset has not implemented captureData with sensor ID.
     */
Verify exception is thrown if the asset has not implemented captureData with sensor ID.
Verify exception is thrown if the asset has not implemented captureData with sensor ID .
public void testCaptureDataWithSensorIdException() throws Exception
    {
        AssetDirectoryService assetDirectoryService = ServiceUtils.getService(m_Context, AssetDirectoryService.class);
        Asset asset = assetDirectoryService.createAsset(ExampleAsset.class.getName());
        try
        {
            asset.captureData("sensor-id");
            fail("expecting exception");
        }
        catch (AssetException e)
        {
        }
    }
public void testCaptureDataWithSensorIdException ( ) throws Exception { AssetDirectoryService assetDirectoryService = ServiceUtils . getService ( m_Context , AssetDirectoryService . class ) ; Asset asset = assetDirectoryService . createAsset ( ExampleAsset . class . getName ( ) ) ; try { asset . captureData ( "sensor-id" ) ; fail ( "expecting exception" ) ; } catch ( AssetException e ) { } }
Verify exception is thrown if the asset has not implemented captureData with sensor ID.
Verify exception is thrown if the asset has not implemented captureData with sensor ID .
// Expected