mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/observation/TestObservationMgrImpl.java
@Test
    public void testHandleManualFilterRequest()
    {
        FacesContext context = mock(FacesContext.class);
        when(m_FacesContextUtil.getFacesContext()).thenReturn(context);
        when(context.isValidationFailed()).thenReturn(false);
        RequestContext reContext = mock(RequestContext.class);
        when(m_FacesContextUtil.getRequestContext()).thenReturn(reContext);
        
        m_SUT.handleManualFilterRequest();
        
        verify(m_FacesContextUtil).getRequestContext();
        verify(reContext).update(":obsTable");
    }
/**
     * Verify that if the faces context says that all items are valid on the page, that there
     * is a call to update the obs table.
     */
Verify that if the faces context says that all items are valid on the page, that there
is a call to update the obs table.
Verify that if the faces context says that all items are valid on the page that there is a call to update the obs table .
@Test
    public void testHandleManualFilterRequest()
    {
        FacesContext context = mock(FacesContext.class);
        when(m_FacesContextUtil.getFacesContext()).thenReturn(context);
        when(context.isValidationFailed()).thenReturn(false);
        RequestContext reContext = mock(RequestContext.class);
        when(m_FacesContextUtil.getRequestContext()).thenReturn(reContext);
        m_SUT.handleManualFilterRequest();
        verify(m_FacesContextUtil).getRequestContext();
        verify(reContext).update(":obsTable");
    }
@ Test public void testHandleManualFilterRequest ( ) { FacesContext context = mock ( FacesContext . class ) ; when ( m_FacesContextUtil . getFacesContext ( ) ) . thenReturn ( context ) ; when ( context . isValidationFailed ( ) ) . thenReturn ( false ) ; RequestContext reContext = mock ( RequestContext . class ) ; when ( m_FacesContextUtil . getRequestContext ( ) ) . thenReturn ( reContext ) ; m_SUT . handleManualFilterRequest ( ) ; verify ( m_FacesContextUtil ) . getRequestContext ( ) ; verify ( reContext ) . update ( ":obsTable" ) ; }
Verify that if the faces context says that all items are valid on the page, that there
 is a call to update the obs table.
Verify that if the faces context says that all items are valid on the page that there is a call to update the obs table .