mil.dod.th.ose.logging/test/mil/dod/th/ose/logging/TestEventLogger.java
@Test
    public void testActivation()
    {
        BundleContext context = mock(BundleContext.class);
        when(context.getProperty(EventLogger.LOG_EVENTS_ENABLED_PROPERTY)).thenReturn("true");
        
        //replay
        m_SUT.activate(context);
        
        //verify all events are registered for
        BundleContextMocker.assertEventHandler(context, "*");
    }
/**
     * Verify that an EventHandler is registered for all events.
     */
Verify that an EventHandler is registered for all events.
Verify that an EventHandler is registered for all events .
@Test
    public void testActivation()
    {
        BundleContext context = mock(BundleContext.class);
        when(context.getProperty(EventLogger.LOG_EVENTS_ENABLED_PROPERTY)).thenReturn("true");
        m_SUT.activate(context);
        BundleContextMocker.assertEventHandler(context, "*");
    }
@ Test public void testActivation ( ) { BundleContext context = mock ( BundleContext . class ) ; when ( context . getProperty ( EventLogger . LOG_EVENTS_ENABLED_PROPERTY ) ) . thenReturn ( "true" ) ; m_SUT . activate ( context ) ; BundleContextMocker . assertEventHandler ( context , "*" ) ; }
Verify that an EventHandler is registered for all events.
Verify that an EventHandler is registered for all events .
//replay //verify all events are registered for