mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestAssetDirectoryService.java
public void testCaptureDataWithSensorId() throws Exception
    {
        AssetDirectoryService assetDirectoryService = ServiceUtils.getService(m_Context, AssetDirectoryService.class);
        
        Asset asset = assetDirectoryService.createAsset(ExampleCommandAsset.class.getName());
        
        Observation observation = asset.captureData("sensor-id");
        assertThat(observation.getSensorId(), is("sensor-id"));
    }
/**
     * Verify data can be captured from an asset when a sensor ID is provided.
     */
Verify data can be captured from an asset when a sensor ID is provided.
Verify data can be captured from an asset when a sensor ID is provided .
public void testCaptureDataWithSensorId() throws Exception
    {
        AssetDirectoryService assetDirectoryService = ServiceUtils.getService(m_Context, AssetDirectoryService.class);
        Asset asset = assetDirectoryService.createAsset(ExampleCommandAsset.class.getName());
        Observation observation = asset.captureData("sensor-id");
        assertThat(observation.getSensorId(), is("sensor-id"));
    }
public void testCaptureDataWithSensorId ( ) throws Exception { AssetDirectoryService assetDirectoryService = ServiceUtils . getService ( m_Context , AssetDirectoryService . class ) ; Asset asset = assetDirectoryService . createAsset ( ExampleCommandAsset . class . getName ( ) ) ; Observation observation = asset . captureData ( "sensor-id" ) ; assertThat ( observation . getSensorId ( ) , is ( "sensor-id" ) ) ; }
Verify data can be captured from an asset when a sensor ID is provided.
Verify data can be captured from an asset when a sensor ID is provided .