mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/observation/TestRemoteObservationListener.java
@Test
    public void testFindObservationResponse() throws ObjectConverterException, IllegalArgumentException, 
        PersistenceFailedException, ValidationFailedException
    {
        //mocks for converter
        Observation obsJaxb = mock(Observation.class);

        //mock behavior
        when(m_Converter.convertToJaxb(Mockito.any(Message.class))).thenReturn(obsJaxb);

        m_ObservationHandler.handleEvent(findObservationsEvent());

        verify(m_ObservationStore, timeout(100).times(3)).persist(Mockito.any(Observation.class));
    }
/**
     * Test loading an observation namespace find template response.
     * Verify that the observation loading interactions take place.
     */
Test loading an observation namespace find template response.
Verify that the observation loading interactions take place.
Test loading an observation namespace find template response . Verify that the observation loading interactions take place .
@Test
    public void testFindObservationResponse() throws ObjectConverterException, IllegalArgumentException, 
        PersistenceFailedException, ValidationFailedException
    {
        Observation obsJaxb = mock(Observation.class);
        when(m_Converter.convertToJaxb(Mockito.any(Message.class))).thenReturn(obsJaxb);
        m_ObservationHandler.handleEvent(findObservationsEvent());
        verify(m_ObservationStore, timeout(100).times(3)).persist(Mockito.any(Observation.class));
    }
@ Test public void testFindObservationResponse ( ) throws ObjectConverterException , IllegalArgumentException , PersistenceFailedException , ValidationFailedException { Observation obsJaxb = mock ( Observation . class ) ; when ( m_Converter . convertToJaxb ( Mockito . any ( Message . class ) ) ) . thenReturn ( obsJaxb ) ; m_ObservationHandler . handleEvent ( findObservationsEvent ( ) ) ; verify ( m_ObservationStore , timeout ( 100 ) . times ( 3 ) ) . persist ( Mockito . any ( Observation . class ) ) ; }
Test loading an observation namespace find template response.
Test loading an observation namespace find template response .
//mocks for converter //mock behavior