mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestScanForAssetsHelperImpl.java
@Test
    public void testRequestScanForAssets()
    {
        final int controllerId = 500;
        
        when(m_MessageFactory.createAssetDirectoryServiceMessage(AssetDirectoryServiceMessageType.GetAssetTypesRequest, 
                null)).thenReturn(m_MessageWrapper);
        
        m_SUT.requestScanForAssets(controllerId);
        
        verify(m_MessageFactory).createAssetDirectoryServiceMessage(
                AssetDirectoryServiceMessageType.GetAssetTypesRequest, null);
        verify(m_MessageWrapper).queue(controllerId, m_SUT);
    }
/**
     * Verify that the request scan for assets method sends the appropriate request message using the 
     * message factory.
     */
Verify that the request scan for assets method sends the appropriate request message using the
message factory.
Verify that the request scan for assets method sends the appropriate request message using the message factory .
@Test
    public void testRequestScanForAssets()
    {
        final int controllerId = 500;
        when(m_MessageFactory.createAssetDirectoryServiceMessage(AssetDirectoryServiceMessageType.GetAssetTypesRequest, 
                null)).thenReturn(m_MessageWrapper);
        m_SUT.requestScanForAssets(controllerId);
        verify(m_MessageFactory).createAssetDirectoryServiceMessage(
                AssetDirectoryServiceMessageType.GetAssetTypesRequest, null);
        verify(m_MessageWrapper).queue(controllerId, m_SUT);
    }
@ Test public void testRequestScanForAssets ( ) { final int controllerId = 500 ; when ( m_MessageFactory . createAssetDirectoryServiceMessage ( AssetDirectoryServiceMessageType . GetAssetTypesRequest , null ) ) . thenReturn ( m_MessageWrapper ) ; m_SUT . requestScanForAssets ( controllerId ) ; verify ( m_MessageFactory ) . createAssetDirectoryServiceMessage ( AssetDirectoryServiceMessageType . GetAssetTypesRequest , null ) ; verify ( m_MessageWrapper ) . queue ( controllerId , m_SUT ) ; }
Verify that the request scan for assets method sends the appropriate request message using the
 message factory.
Verify that the request scan for assets method sends the appropriate request message using the message factory .