mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAddAssetDialogHelperImpl.java
@Test
    public void testGetAssetCapabilities()
    {
        AssetFactoryModel assetFactory = mock(AssetFactoryModel.class);
        AssetCapabilities assetCapabilities = mock(AssetCapabilities.class);
        when(assetFactory.getFactoryCaps()).thenReturn(assetCapabilities);
        
        m_SUT.setAssetFactory(assetFactory);
        AssetCapabilities returnedCaps = m_SUT.getAssetCaps();
        
        assertThat(returnedCaps, notNullValue());
        assertThat(returnedCaps, is(assetCapabilities));
    }
/**
     * Verify AssetCapabilities are returned from an AssetFactoryModel.
     */
Verify AssetCapabilities are returned from an AssetFactoryModel.
Verify AssetCapabilities are returned from an AssetFactoryModel .
@Test
    public void testGetAssetCapabilities()
    {
        AssetFactoryModel assetFactory = mock(AssetFactoryModel.class);
        AssetCapabilities assetCapabilities = mock(AssetCapabilities.class);
        when(assetFactory.getFactoryCaps()).thenReturn(assetCapabilities);
        m_SUT.setAssetFactory(assetFactory);
        AssetCapabilities returnedCaps = m_SUT.getAssetCaps();
        assertThat(returnedCaps, notNullValue());
        assertThat(returnedCaps, is(assetCapabilities));
    }
@ Test public void testGetAssetCapabilities ( ) { AssetFactoryModel assetFactory = mock ( AssetFactoryModel . class ) ; AssetCapabilities assetCapabilities = mock ( AssetCapabilities . class ) ; when ( assetFactory . getFactoryCaps ( ) ) . thenReturn ( assetCapabilities ) ; m_SUT . setAssetFactory ( assetFactory ) ; AssetCapabilities returnedCaps = m_SUT . getAssetCaps ( ) ; assertThat ( returnedCaps , notNullValue ( ) ) ; assertThat ( returnedCaps , is ( assetCapabilities ) ) ; }
Verify AssetCapabilities are returned from an AssetFactoryModel.
Verify AssetCapabilities are returned from an AssetFactoryModel .