mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAssetModel.java
@Test
    public void testDefaultValues()
    {
        //create asset model
        AssetModel model = new AssetModel(123, m_Uuid, ASSET_PID, Asset.class.getName(), 
                m_FactoryMgr, m_ConfigWrapper, m_AssetTypesMgr, m_AssetImageInterface);

        //verify default values
        assertThat(model.getActiveStatus(), is(nullValue()));
        assertThat(model.getSummaryStatus(), is(nullValue()));
        assertThat(model.getName(), is("Unknown (" + m_Uuid + ")"));
        assertThat(model.isActive(), is(false));
        assertThat(model.isBitSupportAsync(), is(false));
        assertThat(model.isDataCaptureSupportAsync(), is(false));
        assertThat(model.getUuid(), is(m_Uuid));
        assertThat(model.getControllerId(), is(123));
        assertThat(model.getPid(), is(ASSET_PID));
        assertThat(model.getWidgetVarName(), is("editNameWid" + m_Uuid.toString().replace('-', 'R')));
    }
/**
     * Test the default/initial values set for a model at creation.
     * 
     * Verify that all values are returned as documented.
     */
Test the default/initial values set for a model at creation.

Verify that all values are returned as documented.
Test the default / initial values set for a model at creation . Verify that all values are returned as documented .
@Test
    public void testDefaultValues()
    {
        AssetModel model = new AssetModel(123, m_Uuid, ASSET_PID, Asset.class.getName(), 
                m_FactoryMgr, m_ConfigWrapper, m_AssetTypesMgr, m_AssetImageInterface);
        assertThat(model.getActiveStatus(), is(nullValue()));
        assertThat(model.getSummaryStatus(), is(nullValue()));
        assertThat(model.getName(), is("Unknown (" + m_Uuid + ")"));
        assertThat(model.isActive(), is(false));
        assertThat(model.isBitSupportAsync(), is(false));
        assertThat(model.isDataCaptureSupportAsync(), is(false));
        assertThat(model.getUuid(), is(m_Uuid));
        assertThat(model.getControllerId(), is(123));
        assertThat(model.getPid(), is(ASSET_PID));
        assertThat(model.getWidgetVarName(), is("editNameWid" + m_Uuid.toString().replace('-', 'R')));
    }
@ Test public void testDefaultValues ( ) { AssetModel model = new AssetModel ( 123 , m_Uuid , ASSET_PID , Asset . class . getName ( ) , m_FactoryMgr , m_ConfigWrapper , m_AssetTypesMgr , m_AssetImageInterface ) ; assertThat ( model . getActiveStatus ( ) , is ( nullValue ( ) ) ) ; assertThat ( model . getSummaryStatus ( ) , is ( nullValue ( ) ) ) ; assertThat ( model . getName ( ) , is ( "Unknown (" + m_Uuid + ")" ) ) ; assertThat ( model . isActive ( ) , is ( false ) ) ; assertThat ( model . isBitSupportAsync ( ) , is ( false ) ) ; assertThat ( model . isDataCaptureSupportAsync ( ) , is ( false ) ) ; assertThat ( model . getUuid ( ) , is ( m_Uuid ) ) ; assertThat ( model . getControllerId ( ) , is ( 123 ) ) ; assertThat ( model . getPid ( ) , is ( ASSET_PID ) ) ; assertThat ( model . getWidgetVarName ( ) , is ( "editNameWid" + m_Uuid . toString ( ) . replace ( '-' , 'R' ) ) ) ; }
Test the default/initial values set for a model at creation.
Test the default / initial values set for a model at creation .
//create asset model //verify default values