mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAddAssetDialogHelperImpl.java
@Test
    public void testSetAssetFactory()
    {
        //mock asset factory
        AssetFactoryModel model = mock(AssetFactoryModel.class);

        //check that is set factory returns false as there is no factory set
        assertThat(m_SUT.isSetAssetFactory(), is(false));

        //set a factory model
        m_SUT.setAssetFactory(model);

        //verify
        assertThat(m_SUT.isSetAssetFactory(), is(true));
        assertThat(m_SUT.getAssetFactory(), is(model));
    }
/**
     * Test setting an asset factory.
     * 
     * Verify that the get asset method returns the correct model.
     * 
     * Verify that the isSetAssetFactory method correctly return true/false if a factory is or is not set.
     */
Test setting an asset factory.

Verify that the get asset method returns the correct model.

Verify that the isSetAssetFactory method correctly return true/false if a factory is or is not set.
Test setting an asset factory . Verify that the get asset method returns the correct model . Verify that the isSetAssetFactory method correctly return true / false if a factory is or is not set .
@Test
    public void testSetAssetFactory()
    {
        AssetFactoryModel model = mock(AssetFactoryModel.class);
        assertThat(m_SUT.isSetAssetFactory(), is(false));
        m_SUT.setAssetFactory(model);
        assertThat(m_SUT.isSetAssetFactory(), is(true));
        assertThat(m_SUT.getAssetFactory(), is(model));
    }
@ Test public void testSetAssetFactory ( ) { AssetFactoryModel model = mock ( AssetFactoryModel . class ) ; assertThat ( m_SUT . isSetAssetFactory ( ) , is ( false ) ) ; m_SUT . setAssetFactory ( model ) ; assertThat ( m_SUT . isSetAssetFactory ( ) , is ( true ) ) ; assertThat ( m_SUT . getAssetFactory ( ) , is ( model ) ) ; }
Test setting an asset factory.
Test setting an asset factory .
//mock asset factory //check that is set factory returns false as there is no factory set //set a factory model //verify