mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestAssetDirectoryServiceNamespace.java
@Test
    public void testGetScannableAssetTypes() throws IOException
    {
        MessageListener listener = new MessageListener(socket);
        
        TerraHarvestMessage message = AssetNamespaceUtils.createAssetDirSvcNamespaceMessage(
                AssetDirectoryServiceMessageType.GetScannableAssetTypesRequest, null);        
        message.writeDelimitedTo(socket.getOutputStream());

        Message responseRcvd = listener.waitForMessage(Namespace.AssetDirectoryService, 
                AssetDirectoryServiceMessageType.GetScannableAssetTypesResponse, 500);
        
        AssetDirectoryServiceNamespace response = (AssetDirectoryServiceNamespace)responseRcvd;
        GetScannableAssetTypesResponseData dataResponse = 
                GetScannableAssetTypesResponseData.parseFrom(response.getData());
        
        assertThat(dataResponse.getScannableAssetTypeCount(), is(1));
        
        assertThat(dataResponse.getScannableAssetTypeList(), 
                hasItems(ExampleAsset.class.getName()));
    }
/**
     * Verify ability to get scannable asset types.
     */
Verify ability to get scannable asset types.
Verify ability to get scannable asset types .
@Test
    public void testGetScannableAssetTypes() throws IOException
    {
        MessageListener listener = new MessageListener(socket);
        TerraHarvestMessage message = AssetNamespaceUtils.createAssetDirSvcNamespaceMessage(
                AssetDirectoryServiceMessageType.GetScannableAssetTypesRequest, null);        
        message.writeDelimitedTo(socket.getOutputStream());
        Message responseRcvd = listener.waitForMessage(Namespace.AssetDirectoryService, 
                AssetDirectoryServiceMessageType.GetScannableAssetTypesResponse, 500);
        AssetDirectoryServiceNamespace response = (AssetDirectoryServiceNamespace)responseRcvd;
        GetScannableAssetTypesResponseData dataResponse = 
                GetScannableAssetTypesResponseData.parseFrom(response.getData());
        assertThat(dataResponse.getScannableAssetTypeCount(), is(1));
        assertThat(dataResponse.getScannableAssetTypeList(), 
                hasItems(ExampleAsset.class.getName()));
    }
@ Test public void testGetScannableAssetTypes ( ) throws IOException { MessageListener listener = new MessageListener ( socket ) ; TerraHarvestMessage message = AssetNamespaceUtils . createAssetDirSvcNamespaceMessage ( AssetDirectoryServiceMessageType . GetScannableAssetTypesRequest , null ) ; message . writeDelimitedTo ( socket . getOutputStream ( ) ) ; Message responseRcvd = listener . waitForMessage ( Namespace . AssetDirectoryService , AssetDirectoryServiceMessageType . GetScannableAssetTypesResponse , 500 ) ; AssetDirectoryServiceNamespace response = ( AssetDirectoryServiceNamespace ) responseRcvd ; GetScannableAssetTypesResponseData dataResponse = GetScannableAssetTypesResponseData . parseFrom ( response . getData ( ) ) ; assertThat ( dataResponse . getScannableAssetTypeCount ( ) , is ( 1 ) ) ; assertThat ( dataResponse . getScannableAssetTypeList ( ) , hasItems ( ExampleAsset . class . getName ( ) ) ) ; }
Verify ability to get scannable asset types.
Verify ability to get scannable asset types .