mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/controller/TestObservationCountMgrImpl.java
private Event mockObsMerged()
    {
        Observation obs = mock(Observation.class);
        UUID uuid = UUID.randomUUID();
        
        when(obs.getSystemId()).thenReturn(CONTROLLER_ID);
        when(m_ObsStore.find(uuid)).thenReturn(obs);
        
        //Properties map for both persisted and merged events.
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(ObservationStore.EVENT_PROP_OBSERVATION_UUID, uuid);
        
        return new Event(ObservationStore.TOPIC_OBSERVATION_MERGED, props);
    }
/**
     * Method used to mock an observation merged event.
     * 
     * @return
     *          Returns a mocked observation merged event.
     */
Method used to mock an observation merged event.

@return
Returns a mocked observation merged event.
Method used to mock an observation merged event . @return Returns a mocked observation merged event .
private Event mockObsMerged()
    {
        Observation obs = mock(Observation.class);
        UUID uuid = UUID.randomUUID();
        when(obs.getSystemId()).thenReturn(CONTROLLER_ID);
        when(m_ObsStore.find(uuid)).thenReturn(obs);
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(ObservationStore.EVENT_PROP_OBSERVATION_UUID, uuid);
        return new Event(ObservationStore.TOPIC_OBSERVATION_MERGED, props);
    }
private Event mockObsMerged ( ) { Observation obs = mock ( Observation . class ) ; UUID uuid = UUID . randomUUID ( ) ; when ( obs . getSystemId ( ) ) . thenReturn ( CONTROLLER_ID ) ; when ( m_ObsStore . find ( uuid ) ) . thenReturn ( obs ) ; Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( ObservationStore . EVENT_PROP_OBSERVATION_UUID , uuid ) ; return new Event ( ObservationStore . TOPIC_OBSERVATION_MERGED , props ) ; }
Method used to mock an observation merged event.
Method used to mock an observation merged event .
//Properties map for both persisted and merged events.