mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/observation/TestViewObsMgrImpl.java
@Test
    public void testHighResObsDisplay()
    {
        Observation obs = buildTestObsHighRes();
        obs.getImageMetadata().setResolution(new PixelResolution(370, 850));
        m_SUT.setObservation(obs);
        
        //Verify that the image is scaled since it's height is greater than the max allowed.
        assertThat(m_SUT.getHeight(), is(470));
        assertThat(m_SUT.getWidth(), is(204));
    }
/**
     * Test that an observation with an image that has a resolution greater than the max is allowed to be displayed.
     * Should be scaled appropriately.
     */
Test that an observation with an image that has a resolution greater than the max is allowed to be displayed.
Should be scaled appropriately.
Test that an observation with an image that has a resolution greater than the max is allowed to be displayed . Should be scaled appropriately .
@Test
    public void testHighResObsDisplay()
    {
        Observation obs = buildTestObsHighRes();
        obs.getImageMetadata().setResolution(new PixelResolution(370, 850));
        m_SUT.setObservation(obs);
        assertThat(m_SUT.getHeight(), is(470));
        assertThat(m_SUT.getWidth(), is(204));
    }
@ Test public void testHighResObsDisplay ( ) { Observation obs = buildTestObsHighRes ( ) ; obs . getImageMetadata ( ) . setResolution ( new PixelResolution ( 370 , 850 ) ) ; m_SUT . setObservation ( obs ) ; assertThat ( m_SUT . getHeight ( ) , is ( 470 ) ) ; assertThat ( m_SUT . getWidth ( ) , is ( 204 ) ) ; }
Test that an observation with an image that has a resolution greater than the max is allowed to be displayed.
Test that an observation with an image that has a resolution greater than the max is allowed to be displayed .
//Verify that the image is scaled since it's height is greater than the max allowed.