mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/factory/TestFactoryObjectDisplayHelperImpl.java
@Test
    public void testSetSelectedObject()
    {
        //check that a selected object is not set
        assertThat(m_SUT.isSetSelectedObject(), is(false));

        //create mock asset model
        AssetModel model = mock(AssetModel.class);
        when(model.getUuid()).thenReturn(uuid);
        when(model.getControllerId()).thenReturn(systemId);

        //set the selected object
        m_SUT.setSelectedFactoryObject(model);
        
        //verify
        assertThat(m_SUT.getSelectedFactoryObject().getUuid(), is(uuid));
        assertThat(m_SUT.isSetSelectedObject(), is(true));
    }
/**
     * Test setting a selected factory object.
     * Verify that initially a selected object is not set.
     * Verify once set that the correct object model is set.
     * Verify that isSetSelectedObject returns proper flag value depending on whether the actual 
     * selected object is set or not.
     */
Test setting a selected factory object.
Verify that initially a selected object is not set.
Verify once set that the correct object model is set.
Verify that isSetSelectedObject returns proper flag value depending on whether the actual
selected object is set or not.
Test setting a selected factory object . Verify that initially a selected object is not set . Verify once set that the correct object model is set . Verify that isSetSelectedObject returns proper flag value depending on whether the actual selected object is set or not .
@Test
    public void testSetSelectedObject()
    {
        assertThat(m_SUT.isSetSelectedObject(), is(false));
        AssetModel model = mock(AssetModel.class);
        when(model.getUuid()).thenReturn(uuid);
        when(model.getControllerId()).thenReturn(systemId);
        m_SUT.setSelectedFactoryObject(model);
        assertThat(m_SUT.getSelectedFactoryObject().getUuid(), is(uuid));
        assertThat(m_SUT.isSetSelectedObject(), is(true));
    }
@ Test public void testSetSelectedObject ( ) { assertThat ( m_SUT . isSetSelectedObject ( ) , is ( false ) ) ; AssetModel model = mock ( AssetModel . class ) ; when ( model . getUuid ( ) ) . thenReturn ( uuid ) ; when ( model . getControllerId ( ) ) . thenReturn ( systemId ) ; m_SUT . setSelectedFactoryObject ( model ) ; assertThat ( m_SUT . getSelectedFactoryObject ( ) . getUuid ( ) , is ( uuid ) ) ; assertThat ( m_SUT . isSetSelectedObject ( ) , is ( true ) ) ; }
Test setting a selected factory object.
Test setting a selected factory object .
//check that a selected object is not set //create mock asset model //set the selected object //verify