mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAssetMgrImpl.java
@Test
    public void testHandleRemoteEventDataCaptured()
    {
        //load assets for one system
        Event getAssetsReponse = mockGetAssetsResponse(systemId1);
        
        //this should render two assets for the system id
        m_AssetDirHelper.handleEvent(getAssetsReponse);
        
        //verify assets added
        assertThat(m_SUT.getAssetsForControllerAsync(systemId1).size(), is(2));
        
        //mock event that an asset captured data
        Event objectCapturedData = mockEventCapturedData(systemId1);
        
        m_EventHelper.handleEvent(objectCapturedData);
        
        //verify growl message
        verify(m_GrowlUtil).createGlobalFacesMessage(FacesMessage.SEVERITY_INFO, "Asset captured data!",
            String.format("An asset from controller 0x%08x captured data. The observation UUID is %s.", systemId1,
                 uuid2.toString()));
    }
/**
     * Test the handling of data captured event.
     * Verify growl message.
     */
Test the handling of data captured event.
Verify growl message.
Test the handling of data captured event . Verify growl message .
@Test
    public void testHandleRemoteEventDataCaptured()
    {
        Event getAssetsReponse = mockGetAssetsResponse(systemId1);
        m_AssetDirHelper.handleEvent(getAssetsReponse);
        assertThat(m_SUT.getAssetsForControllerAsync(systemId1).size(), is(2));
        Event objectCapturedData = mockEventCapturedData(systemId1);
        m_EventHelper.handleEvent(objectCapturedData);
        verify(m_GrowlUtil).createGlobalFacesMessage(FacesMessage.SEVERITY_INFO, "Asset captured data!",
            String.format("An asset from controller 0x%08x captured data. The observation UUID is %s.", systemId1,
                 uuid2.toString()));
    }
@ Test public void testHandleRemoteEventDataCaptured ( ) { Event getAssetsReponse = mockGetAssetsResponse ( systemId1 ) ; m_AssetDirHelper . handleEvent ( getAssetsReponse ) ; assertThat ( m_SUT . getAssetsForControllerAsync ( systemId1 ) . size ( ) , is ( 2 ) ) ; Event objectCapturedData = mockEventCapturedData ( systemId1 ) ; m_EventHelper . handleEvent ( objectCapturedData ) ; verify ( m_GrowlUtil ) . createGlobalFacesMessage ( FacesMessage . SEVERITY_INFO , "Asset captured data!" , String . format ( "An asset from controller 0x%08x captured data. The observation UUID is %s." , systemId1 , uuid2 . toString ( ) ) ) ; }
Test the handling of data captured event.
Test the handling of data captured event .
//load assets for one system //this should render two assets for the system id //verify assets added //mock event that an asset captured data //verify growl message