mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAssetMgrImpl.java
@Test
    public void testHandleRemoteAssetEventForAssetThatAssetMgrDoesNotHave()
    {
        //create a status
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "name");
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, uuid2.toString());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_TYPE, Asset.class.getName());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_PID, "PID");
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE, "Asset");
        props.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, 1);
        Event event = new Event(Asset.TOPIC_ACTIVATION_COMPLETE + RemoteConstants.REMOTE_TOPIC_SUFFIX, props);
        
        m_EventHelper.handleEvent(event);
        
        verify(m_EventAdmin, never()).postEvent(Mockito.any(Event.class));
    }
/*
     * Verify that nothing is done if the model the event is for is not known.
     */
Verify that nothing is done if the model the event is for is not known.
Verify that nothing is done if the model the event is for is not known .
@Test
    public void testHandleRemoteAssetEventForAssetThatAssetMgrDoesNotHave()
    {
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "name");
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, uuid2.toString());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_TYPE, Asset.class.getName());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_PID, "PID");
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE, "Asset");
        props.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, 1);
        Event event = new Event(Asset.TOPIC_ACTIVATION_COMPLETE + RemoteConstants.REMOTE_TOPIC_SUFFIX, props);
        m_EventHelper.handleEvent(event);
        verify(m_EventAdmin, never()).postEvent(Mockito.any(Event.class));
    }
@ Test public void testHandleRemoteAssetEventForAssetThatAssetMgrDoesNotHave ( ) { final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_NAME , "name" ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_UUID , uuid2 . toString ( ) ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_TYPE , Asset . class . getName ( ) ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_PID , "PID" ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_BASE_TYPE , "Asset" ) ; props . put ( RemoteConstants . REMOTE_EVENT_PROP_CONTROLLER_ID , 1 ) ; Event event = new Event ( Asset . TOPIC_ACTIVATION_COMPLETE + RemoteConstants . REMOTE_TOPIC_SUFFIX , props ) ; m_EventHelper . handleEvent ( event ) ; verify ( m_EventAdmin , never ( ) ) . postEvent ( Mockito . any ( Event . class ) ) ; }
Verify that nothing is done if the model the event is for is not known.
Verify that nothing is done if the model the event is for is not known .
//create a status