mil.dod.th.ose.test/src/mil/dod/th/ose/test/EventAdminVerifier.java
public static void assertOnlyGivenEvents(EventAdmin admin, 
            String expectedTopics, Map<String, Object> expectedProperties)
    {
        List<String> topics = new ArrayList<>();
        topics.add(expectedTopics);
        List<Map<String, Object>> maps = new ArrayList<>();
        maps.add(expectedProperties);
        assertOnlyGivenEvents(admin, topics, maps);
    }
/**
     * Method to assert only the given topics regardless of other posted events. Order of expected topics
     * does not matter but it is expected that topic and properties lists correspond. Only given properties
     * will be checked.
     * @param admin
     *  the event admin to use
     * @param expectedTopics
     *  the expected topic to check for
     * @param expectedProperties
     *  the expected properties that correspond to the given expected topic
     */
Method to assert only the given topics regardless of other posted events. Order of expected topics
does not matter but it is expected that topic and properties lists correspond. Only given properties
will be checked.
@param admin
the event admin to use
@param expectedTopics
the expected topic to check for
@param expectedProperties
the expected properties that correspond to the given expected topic
Method to assert only the given topics regardless of other posted events . Order of expected topics does not matter but it is expected that topic and properties lists correspond . Only given properties will be checked . @param admin the event admin to use @param expectedTopics the expected topic to check for @param expectedProperties the expected properties that correspond to the given expected topic
public static void assertOnlyGivenEvents(EventAdmin admin, 
            String expectedTopics, Map<String, Object> expectedProperties)
    {
        List<String> topics = new ArrayList<>();
        topics.add(expectedTopics);
        List<Map<String, Object>> maps = new ArrayList<>();
        maps.add(expectedProperties);
        assertOnlyGivenEvents(admin, topics, maps);
    }
public static void assertOnlyGivenEvents ( EventAdmin admin , String expectedTopics , Map < String , Object > expectedProperties ) { List < String > topics = new ArrayList < > ( ) ; topics . add ( expectedTopics ) ; List < Map < String , Object > > maps = new ArrayList < > ( ) ; maps . add ( expectedProperties ) ; assertOnlyGivenEvents ( admin , topics , maps ) ; }
Method to assert only the given topics regardless of other posted events.
Method to assert only the given topics regardless of other posted events .