mil.dod.th.ose.test/src/mil/dod/th/ose/test/EventAdminMocker.java
private void registerHandler()
        {
            doAnswer(new Answer<Object>()
            {
                @Override
                public Object answer(InvocationOnMock invocation) throws Throwable
                {
                    m_HandlerToReturn.handleEvent((Event)invocation.getArguments()[0]);
                    return null;
                }
            }).when(m_EventAdmin).postEvent(Mockito.any(Event.class));
        }
/**
         * Mocks the call to the given handler when the {@link EventAdmin#postEvent(Event)} method is 
         * invoked.
         */
Mocks the call to the given handler when the  EventAdmin#postEvent(Event) method is
invoked.
Mocks the call to the given handler when the EventAdmin#postEvent ( Event ) method is invoked .
private void registerHandler()
        {
            doAnswer(new Answer<Object>()
            {
                @Override
                public Object answer(InvocationOnMock invocation) throws Throwable
                {
                    m_HandlerToReturn.handleEvent((Event)invocation.getArguments()[0]);
                    return null;
                }
            }).when(m_EventAdmin).postEvent(Mockito.any(Event.class));
        }
private void registerHandler ( ) { doAnswer ( new Answer < Object > ( ) { @ Override public Object answer ( InvocationOnMock invocation ) throws Throwable { m_HandlerToReturn . handleEvent ( ( Event ) invocation . getArguments ( ) [ 0 ] ) ; return null ; } } ) . when ( m_EventAdmin ) . postEvent ( Mockito . any ( Event . class ) ) ; }
Mocks the call to the given handler when the {@link EventAdmin#postEvent(Event)} method is
 invoked.
Mocks the call to the given handler when the { @link EventAdmin#postEvent ( Event ) } method is invoked .