mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/mp/TestMissionProgramManagerImpl.java
@Test
    public void testIgnoredEvent()
    {
        setScriptEngineAndActivate();
        
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "assetZ");
        // Address should be ignored but not throw exception
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE, "Address"); 
        
        m_EventHandlerAnswer.getHandler().handleEvent(new Event(FactoryDescriptor.TOPIC_FACTORY_OBJ_CREATED, props));
    }
/**
     * Verify that an event is properly ignored.
     */
Verify that an event is properly ignored.
Verify that an event is properly ignored .
@Test
    public void testIgnoredEvent()
    {
        setScriptEngineAndActivate();
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, "assetZ");
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE, "Address"); 
        m_EventHandlerAnswer.getHandler().handleEvent(new Event(FactoryDescriptor.TOPIC_FACTORY_OBJ_CREATED, props));
    }
@ Test public void testIgnoredEvent ( ) { setScriptEngineAndActivate ( ) ; Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_NAME , "assetZ" ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_BASE_TYPE , "Address" ) ; m_EventHandlerAnswer . getHandler ( ) . handleEvent ( new Event ( FactoryDescriptor . TOPIC_FACTORY_OBJ_CREATED , props ) ) ; }
Verify that an event is properly ignored.
Verify that an event is properly ignored .
// Address should be ignored but not throw exception