mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAssetTypesMgrImpl.java
@Test
    public void testHandleBundleEventUpdate()
    {
        //create a remote bundle updated event
        Map<String, Object> props = new HashMap<>();
        props.put("bundle.id", 5L);
        props.put("controller.id", systemId1);
        Event bundleUpdatedEvent = new Event(OSGiEventConstants.TOPIC_BUNDLE_UPDATED + 
            RemoteConstants.REMOTE_TOPIC_SUFFIX, props);
        
        m_RemoteBundleUpdated.handleEvent(bundleUpdatedEvent);
        
        //verify that a message was sent out to retrieve asset types
        verify(m_MessageFactory).createAssetDirectoryServiceMessage(
                AssetDirectoryServiceMessageType.GetAssetTypesRequest, null);
        verify(m_MessageWrapper).queue(systemId1, null);
    }
/**
     * Test the bundle event handler handling an update remote bundle event.
     */
Test the bundle event handler handling an update remote bundle event.
Test the bundle event handler handling an update remote bundle event .
@Test
    public void testHandleBundleEventUpdate()
    {
        Map<String, Object> props = new HashMap<>();
        props.put("bundle.id", 5L);
        props.put("controller.id", systemId1);
        Event bundleUpdatedEvent = new Event(OSGiEventConstants.TOPIC_BUNDLE_UPDATED + 
            RemoteConstants.REMOTE_TOPIC_SUFFIX, props);
        m_RemoteBundleUpdated.handleEvent(bundleUpdatedEvent);
        verify(m_MessageFactory).createAssetDirectoryServiceMessage(
                AssetDirectoryServiceMessageType.GetAssetTypesRequest, null);
        verify(m_MessageWrapper).queue(systemId1, null);
    }
@ Test public void testHandleBundleEventUpdate ( ) { Map < String , Object > props = new HashMap < > ( ) ; props . put ( "bundle.id" , 5L ) ; props . put ( "controller.id" , systemId1 ) ; Event bundleUpdatedEvent = new Event ( OSGiEventConstants . TOPIC_BUNDLE_UPDATED + RemoteConstants . REMOTE_TOPIC_SUFFIX , props ) ; m_RemoteBundleUpdated . handleEvent ( bundleUpdatedEvent ) ; verify ( m_MessageFactory ) . createAssetDirectoryServiceMessage ( AssetDirectoryServiceMessageType . GetAssetTypesRequest , null ) ; verify ( m_MessageWrapper ) . queue ( systemId1 , null ) ; }
Test the bundle event handler handling an update remote bundle event.
Test the bundle event handler handling an update remote bundle event .
//create a remote bundle updated event //verify that a message was sent out to retrieve asset types