mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/persistence/TestObservationQueryImpl.java
@Test
    public void testInvalidTimeRanges()
    {
        try
        {
            m_SUT.withTimeObservedRange(new Date(500), new Date(499));
            fail("Expecting exception as observed start date is after the stop date");
        }
        catch (IllegalArgumentException e)
        {
        }

        try
        {
            m_SUT.withTimeCreatedRange(new Date(500), new Date(499));
            fail("Expecting exception as created start date is after the stop date");
        }
        catch (IllegalArgumentException e)
        {
        }
    }
/**
     * Verify an invalid observed or created time range will cause an exception
     */
Verify an invalid observed or created time range will cause an exception
Verify an invalid observed or created time range will cause an exception
@Test
    public void testInvalidTimeRanges()
    {
        try
        {
            m_SUT.withTimeObservedRange(new Date(500), new Date(499));
            fail("Expecting exception as observed start date is after the stop date");
        }
        catch (IllegalArgumentException e)
        {
        }
        try
        {
            m_SUT.withTimeCreatedRange(new Date(500), new Date(499));
            fail("Expecting exception as created start date is after the stop date");
        }
        catch (IllegalArgumentException e)
        {
        }
    }
@ Test public void testInvalidTimeRanges ( ) { try { m_SUT . withTimeObservedRange ( new Date ( 500 ) , new Date ( 499 ) ) ; fail ( "Expecting exception as observed start date is after the stop date" ) ; } catch ( IllegalArgumentException e ) { } try { m_SUT . withTimeCreatedRange ( new Date ( 500 ) , new Date ( 499 ) ) ; fail ( "Expecting exception as created start date is after the stop date" ) ; } catch ( IllegalArgumentException e ) { } }
Verify an invalid observed or created time range will cause an exception
Verify an invalid observed or created time range will cause an exception