mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/observation/TestRelatedObservationViewImpl.java
@Test
    public void testBackForward()
    {
        m_SUT.initialize(OBS_UUID_1);
        m_SUT.setCurrentNode(OBS_UUID_2);
        assertThat(m_SUT.getObservation(), is(m_GuiObs2));
        assertThat(m_SUT.canMoveForward(), is(false));
        
        m_SUT.back();
        assertThat(m_SUT.getObservation(), is(m_GuiObs1));
        assertThat(m_SUT.canMoveForward(), is (true));
        
        m_SUT.forward();
        assertThat(m_SUT.getObservation(), is(m_GuiObs2));
        assertThat(m_SUT.canMoveForward(), is(false));
    }
/**
     * Verify that the back and forward method appropriately sets the current node to the correctly view related
     * observation.
     */
Verify that the back and forward method appropriately sets the current node to the correctly view related
observation.
Verify that the back and forward method appropriately sets the current node to the correctly view related observation .
@Test
    public void testBackForward()
    {
        m_SUT.initialize(OBS_UUID_1);
        m_SUT.setCurrentNode(OBS_UUID_2);
        assertThat(m_SUT.getObservation(), is(m_GuiObs2));
        assertThat(m_SUT.canMoveForward(), is(false));
        m_SUT.back();
        assertThat(m_SUT.getObservation(), is(m_GuiObs1));
        assertThat(m_SUT.canMoveForward(), is (true));
        m_SUT.forward();
        assertThat(m_SUT.getObservation(), is(m_GuiObs2));
        assertThat(m_SUT.canMoveForward(), is(false));
    }
@ Test public void testBackForward ( ) { m_SUT . initialize ( OBS_UUID_1 ) ; m_SUT . setCurrentNode ( OBS_UUID_2 ) ; assertThat ( m_SUT . getObservation ( ) , is ( m_GuiObs2 ) ) ; assertThat ( m_SUT . canMoveForward ( ) , is ( false ) ) ; m_SUT . back ( ) ; assertThat ( m_SUT . getObservation ( ) , is ( m_GuiObs1 ) ) ; assertThat ( m_SUT . canMoveForward ( ) , is ( true ) ) ; m_SUT . forward ( ) ; assertThat ( m_SUT . getObservation ( ) , is ( m_GuiObs2 ) ) ; assertThat ( m_SUT . canMoveForward ( ) , is ( false ) ) ; }
Verify that the back and forward method appropriately sets the current node to the correctly view related
 observation.
Verify that the back and forward method appropriately sets the current node to the correctly view related observation .