mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/observation/TestObservationMgrImpl.java
@Test
    public void testFilterByExpressionNullFilter()
    {
        //settings
        m_SUT.setFilterByExpression(true);
        m_SUT.setFilter(null);
        
        //request for observations
        m_SUT.getObservations().load(0, 10, null, null, null);
        
        //verify no calls
        verify(m_ObsQuery, never()).withAssetUuid(Mockito.any(UUID.class));
        verify(m_ObsQuery).execute();
        //verify jdo store NOT call
        verify(m_JdoStore, never()).newJdoQuery();
        verify(m_JdoStore, never()).executeJdoQuery(Mockito.any(javax.jdo.Query.class));
        verify(m_JdoStore, never()).executeGetCount(Mockito.any(javax.jdo.Query.class));
    }
/**
     * Verify the remote request to retrieve Observations for all known assets because the filter string is null.
     */
Verify the remote request to retrieve Observations for all known assets because the filter string is null.
Verify the remote request to retrieve Observations for all known assets because the filter string is null .
@Test
    public void testFilterByExpressionNullFilter()
    {
        m_SUT.setFilterByExpression(true);
        m_SUT.setFilter(null);
        m_SUT.getObservations().load(0, 10, null, null, null);
        verify(m_ObsQuery, never()).withAssetUuid(Mockito.any(UUID.class));
        verify(m_ObsQuery).execute();
        verify(m_JdoStore, never()).newJdoQuery();
        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 testFilterByExpressionNullFilter ( ) { m_SUT . setFilterByExpression ( true ) ; m_SUT . setFilter ( null ) ; m_SUT . getObservations ( ) . load ( 0 , 10 , null , null , null ) ; verify ( m_ObsQuery , never ( ) ) . withAssetUuid ( Mockito . any ( UUID . class ) ) ; verify ( m_ObsQuery ) . execute ( ) ; verify ( m_JdoStore , never ( ) ) . newJdoQuery ( ) ; verify ( m_JdoStore , never ( ) ) . executeJdoQuery ( Mockito . any ( javax . jdo . Query . class ) ) ; verify ( m_JdoStore , never ( ) ) . executeGetCount ( Mockito . any ( javax . jdo . Query . class ) ) ; }
Verify the remote request to retrieve Observations for all known assets because the filter string is null.
Verify the remote request to retrieve Observations for all known assets because the filter string is null .
//settings //request for observations //verify no calls //verify jdo store NOT call