mil.dod.th.ose.test/src/mil/dod/th/ose/test/EventAdminVerifier.java
public static void assertLastEvent(EventAdmin admin, String expectedTopic, Map<String, Object> expectedProps)
    {
        ArgumentCaptor<Event> evtCaptor = ArgumentCaptor.forClass(Event.class);
        verify(admin, atLeastOnce()).postEvent(evtCaptor.capture());

        verifyGivenProperties(evtCaptor.getValue(), expectedTopic, expectedProps);
    }
/**
     * Method used to verify last event posted to {@link EventAdmin}.
     * 
     * @param admin
     *      the event admin instance to verify against
     * @param expectedTopic
     *      the expected topic
     * @param expectedProps
     *      the expected properties or null to ignore properties set
     */
Method used to verify last event posted to  EventAdmin.

@param admin
the event admin instance to verify against
@param expectedTopic
the expected topic
@param expectedProps
the expected properties or null to ignore properties set
Method used to verify last event posted to EventAdmin . @param admin the event admin instance to verify against @param expectedTopic the expected topic @param expectedProps the expected properties or null to ignore properties set
public static void assertLastEvent(EventAdmin admin, String expectedTopic, Map<String, Object> expectedProps)
    {
        ArgumentCaptor<Event> evtCaptor = ArgumentCaptor.forClass(Event.class);
        verify(admin, atLeastOnce()).postEvent(evtCaptor.capture());
        verifyGivenProperties(evtCaptor.getValue(), expectedTopic, expectedProps);
    }
public static void assertLastEvent ( EventAdmin admin , String expectedTopic , Map < String , Object > expectedProps ) { ArgumentCaptor < Event > evtCaptor = ArgumentCaptor . forClass ( Event . class ) ; verify ( admin , atLeastOnce ( ) ) . postEvent ( evtCaptor . capture ( ) ) ; verifyGivenProperties ( evtCaptor . getValue ( ) , expectedTopic , expectedProps ) ; }
Method used to verify last event posted to {@link EventAdmin}.
Method used to verify last event posted to { @link EventAdmin } .