mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/observation/TestObservationMgrImpl.java
@Test
    public void testFilteringObservationsByBadDateAllAssets()
    {
        //date objs
        Date start = new Date(8L);
        Date stop = new Date(5L);
        
        //dates
        m_SUT.setFilterByDate(true);
        m_SUT.setStartDate(start);
        m_SUT.setEndDate(stop);
        
        //request for observations
        m_SUT.getObservations().load(0, 10, null, null, null);
        
        //verify two calls are made to the observation store, one for the query and one for the count
        verify(m_ObservationStore, times(2)).newQuery();
        verify(m_ObsQuery, never()).execute();
        verify(m_ObsCount, never()).getCount();
    }
/**
     * Verify request for obs when start date is after end date, does not blow up.
     */
Verify request for obs when start date is after end date, does not blow up.
Verify request for obs when start date is after end date does not blow up .
@Test
    public void testFilteringObservationsByBadDateAllAssets()
    {
        Date start = new Date(8L);
        Date stop = new Date(5L);
        m_SUT.setFilterByDate(true);
        m_SUT.setStartDate(start);
        m_SUT.setEndDate(stop);
        m_SUT.getObservations().load(0, 10, null, null, null);
        verify(m_ObservationStore, times(2)).newQuery();
        verify(m_ObsQuery, never()).execute();
        verify(m_ObsCount, never()).getCount();
    }
@ Test public void testFilteringObservationsByBadDateAllAssets ( ) { Date start = new Date ( 8L ) ; Date stop = new Date ( 5L ) ; m_SUT . setFilterByDate ( true ) ; m_SUT . setStartDate ( start ) ; m_SUT . setEndDate ( stop ) ; m_SUT . getObservations ( ) . load ( 0 , 10 , null , null , null ) ; verify ( m_ObservationStore , times ( 2 ) ) . newQuery ( ) ; verify ( m_ObsQuery , never ( ) ) . execute ( ) ; verify ( m_ObsCount , never ( ) ) . getCount ( ) ; }
Verify request for obs when start date is after end date, does not blow up.
Verify request for obs when start date is after end date does not blow up .
//date objs //dates //request for observations //verify two calls are made to the observation store, one for the query and one for the count