mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/observation/TestObservationMgrImpl.java
@Test
    public void testFilterByExpressionAndDateNullStartDate()
    {
        //settings
        m_SUT.setFilterByExpression(true);
        m_SUT.setFilterByDate(true);
        m_SUT.setFilter("filter");
        m_SUT.setStartDate(null);
        m_SUT.setEndDate(new Date(7L));

        //request for observations
        List<GuiObservation> list = m_SUT.getObservations().load(0, 10, null, null, null);
        
        assertThat(list.size(), is(0));
        
        //verify call to jdo store
        verify(m_JdoStore, never()).executeJdoQuery(Mockito.any(javax.jdo.Query.class));
        verify(m_JdoStore, never()).executeGetCount(Mockito.any(javax.jdo.Query.class));
    }
/**
     * Verify filtering of Observations via a filter string and date if the start date is null.
     */
Verify filtering of Observations via a filter string and date if the start date is null.
Verify filtering of Observations via a filter string and date if the start date is null .
@Test
    public void testFilterByExpressionAndDateNullStartDate()
    {
        m_SUT.setFilterByExpression(true);
        m_SUT.setFilterByDate(true);
        m_SUT.setFilter("filter");
        m_SUT.setStartDate(null);
        m_SUT.setEndDate(new Date(7L));
        List<GuiObservation> list = m_SUT.getObservations().load(0, 10, null, null, null);
        assertThat(list.size(), is(0));
        verify(m_JdoStore, never()).executeJdoQuery(Mockito.any(javax.jdo.Query.class));
        verify(m_JdoStore, never()).executeGetCount(Mockito.any(javax.jdo.Query.class));
    }
@ Test public void testFilterByExpressionAndDateNullStartDate ( ) { m_SUT . setFilterByExpression ( true ) ; m_SUT . setFilterByDate ( true ) ; m_SUT . setFilter ( "filter" ) ; m_SUT . setStartDate ( null ) ; m_SUT . setEndDate ( new Date ( 7L ) ) ; List < GuiObservation > list = m_SUT . getObservations ( ) . load ( 0 , 10 , null , null , null ) ; assertThat ( list . size ( ) , is ( 0 ) ) ; verify ( m_JdoStore , never ( ) ) . executeJdoQuery ( Mockito . any ( javax . jdo . Query . class ) ) ; verify ( m_JdoStore , never ( ) ) . executeGetCount ( Mockito . any ( javax . jdo . Query . class ) ) ; }
Verify filtering of Observations via a filter string and date if the start date is null.
Verify filtering of Observations via a filter string and date if the start date is null .
//settings //request for observations //verify call to jdo store