mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAssetMgrImpl.java
@Test
    public void testGetAssetModelById()
    {
        AssetModel modelNotFound = m_SUT.getAssetModelByUuid(UUID.randomUUID(), 10);
        
        assertThat(modelNotFound, nullValue());
        
        Event event = mockEventAssetCreated(10);
        
        m_EventHelper.handleEvent(event);
        
        AssetModel modelFound = m_SUT.getAssetModelByUuid(uuid2, 10);
        assertThat(modelFound, notNullValue());
        assertThat(modelFound.getName().contains("Unknown"), is(true));
    }
/**
     * Verify asset model can be retrieved by uuid.
     */
Verify asset model can be retrieved by uuid.
Verify asset model can be retrieved by uuid .
@Test
    public void testGetAssetModelById()
    {
        AssetModel modelNotFound = m_SUT.getAssetModelByUuid(UUID.randomUUID(), 10);
        assertThat(modelNotFound, nullValue());
        Event event = mockEventAssetCreated(10);
        m_EventHelper.handleEvent(event);
        AssetModel modelFound = m_SUT.getAssetModelByUuid(uuid2, 10);
        assertThat(modelFound, notNullValue());
        assertThat(modelFound.getName().contains("Unknown"), is(true));
    }
@ Test public void testGetAssetModelById ( ) { AssetModel modelNotFound = m_SUT . getAssetModelByUuid ( UUID . randomUUID ( ) , 10 ) ; assertThat ( modelNotFound , nullValue ( ) ) ; Event event = mockEventAssetCreated ( 10 ) ; m_EventHelper . handleEvent ( event ) ; AssetModel modelFound = m_SUT . getAssetModelByUuid ( uuid2 , 10 ) ; assertThat ( modelFound , notNullValue ( ) ) ; assertThat ( modelFound . getName ( ) . contains ( "Unknown" ) , is ( true ) ) ; }
Verify asset model can be retrieved by uuid.
Verify asset model can be retrieved by uuid .