mil.dod.th.ose.test/src/mil/dod/th/ose/test/EventAdminVerifier.java
@SuppressWarnings({"unchecked", "rawtypes"})
    private static void verifyGivenProperties(Event givenEvent, String givenTopic, Map<String, Object> givenProps)
    {
        assertThat(givenEvent.getTopic(), is(givenTopic));
        
        if (givenProps == null)
        {
            return;
        }
        
        for (String key : givenProps.keySet())
        {
            if (givenProps.get(key) instanceof Matcher)
            {
                assertThat(givenEvent.getProperty(key), (Matcher)givenProps.get(key));
            }
            else
            {
                assertThat(givenEvent.getProperty(key), is(givenProps.get(key)));
            }
        }
    }
/**
     * Method verifies a given event has the given topic and contains at least the given properties.
     * 
     * @param givenEvent
     *      the event that is to be verified
     * @param givenTopic
     *      the expected topic for the given event
     * @param givenProps
     *      the expected properties for the given event
     */
Method verifies a given event has the given topic and contains at least the given properties.

@param givenEvent
the event that is to be verified
@param givenTopic
the expected topic for the given event
@param givenProps
the expected properties for the given event
Method verifies a given event has the given topic and contains at least the given properties . @param givenEvent the event that is to be verified @param givenTopic the expected topic for the given event @param givenProps the expected properties for the given event
@SuppressWarnings({"unchecked", "rawtypes"})
    private static void verifyGivenProperties(Event givenEvent, String givenTopic, Map<String, Object> givenProps)
    {
        assertThat(givenEvent.getTopic(), is(givenTopic));
        if (givenProps == null)
        {
            return;
        }
        for (String key : givenProps.keySet())
        {
            if (givenProps.get(key) instanceof Matcher)
            {
                assertThat(givenEvent.getProperty(key), (Matcher)givenProps.get(key));
            }
            else
            {
                assertThat(givenEvent.getProperty(key), is(givenProps.get(key)));
            }
        }
    }
@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) private static void verifyGivenProperties ( Event givenEvent , String givenTopic , Map < String , Object > givenProps ) { assertThat ( givenEvent . getTopic ( ) , is ( givenTopic ) ) ; if ( givenProps == null ) { return ; } for ( String key : givenProps . keySet ( ) ) { if ( givenProps . get ( key ) instanceof Matcher ) { assertThat ( givenEvent . getProperty ( key ) , ( Matcher ) givenProps . get ( key ) ) ; } else { assertThat ( givenEvent . getProperty ( key ) , is ( givenProps . get ( key ) ) ) ; } } }
Method verifies a given event has the given topic and contains at least the given properties.
Method verifies a given event has the given topic and contains at least the given properties .