mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/observation/TestRemoteObservationListener.java
@Test
    public void testGetObservationResponse() throws ObjectConverterException, IllegalArgumentException, 
        PersistenceFailedException, ValidationFailedException
    {

        m_ObservationHandler.handleEvent(getObservationsEvent());

        verify(m_ObservationStore, timeout(100).times(3)).persist(Mockito.any(Observation.class));
        
        ArgumentCaptor<Event> captor = ArgumentCaptor.forClass(Event.class);
        //verify push event
        verify(m_EventAdmin).postEvent(captor.capture());
        assertThat(captor.getValue().getTopic(), is(RemoteEventConstants.TOPIC_OBS_STORE_RETRIEVE_COMPLETE));
        assertThat((Integer)captor.getValue().getProperty(RemoteEventConstants.EVENT_PROP_OBS_NUMBER_RETRIEVED), is(3));
    }
/**
     * Test loading get observation response data.
     * Verify that the observation loading interactions take place.
     */
Test loading get observation response data.
Verify that the observation loading interactions take place.
Test loading get observation response data . Verify that the observation loading interactions take place .
@Test
    public void testGetObservationResponse() throws ObjectConverterException, IllegalArgumentException, 
        PersistenceFailedException, ValidationFailedException
    {
        m_ObservationHandler.handleEvent(getObservationsEvent());
        verify(m_ObservationStore, timeout(100).times(3)).persist(Mockito.any(Observation.class));
        ArgumentCaptor<Event> captor = ArgumentCaptor.forClass(Event.class);
        verify(m_EventAdmin).postEvent(captor.capture());
        assertThat(captor.getValue().getTopic(), is(RemoteEventConstants.TOPIC_OBS_STORE_RETRIEVE_COMPLETE));
        assertThat((Integer)captor.getValue().getProperty(RemoteEventConstants.EVENT_PROP_OBS_NUMBER_RETRIEVED), is(3));
    }
@ Test public void testGetObservationResponse ( ) throws ObjectConverterException , IllegalArgumentException , PersistenceFailedException , ValidationFailedException { m_ObservationHandler . handleEvent ( getObservationsEvent ( ) ) ; verify ( m_ObservationStore , timeout ( 100 ) . times ( 3 ) ) . persist ( Mockito . any ( Observation . class ) ) ; ArgumentCaptor < Event > captor = ArgumentCaptor . forClass ( Event . class ) ; verify ( m_EventAdmin ) . postEvent ( captor . capture ( ) ) ; assertThat ( captor . getValue ( ) . getTopic ( ) , is ( RemoteEventConstants . TOPIC_OBS_STORE_RETRIEVE_COMPLETE ) ) ; assertThat ( ( Integer ) captor . getValue ( ) . getProperty ( RemoteEventConstants . EVENT_PROP_OBS_NUMBER_RETRIEVED ) , is ( 3 ) ) ; }
Test loading get observation response data.
Test loading get observation response data .
//verify push event