mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/persistence/TestObservationQueryImpl.java
@Test
    public void testRemoveWithOrderSet()
    {
        m_SUT.withOrder(SortField.CreatedTimestamp, SortOrder.Descending);
        
        try
        {
            m_SUT.remove();
            fail("Expecting exception because order was set");
        }
        catch (IllegalStateException e)
        {
            
        }
    }
/**
     * Verify trying to remove with an order set will cause an exception.
     */
Verify trying to remove with an order set will cause an exception.
Verify trying to remove with an order set will cause an exception .
@Test
    public void testRemoveWithOrderSet()
    {
        m_SUT.withOrder(SortField.CreatedTimestamp, SortOrder.Descending);
        try
        {
            m_SUT.remove();
            fail("Expecting exception because order was set");
        }
        catch (IllegalStateException e)
        {
        }
    }
@ Test public void testRemoveWithOrderSet ( ) { m_SUT . withOrder ( SortField . CreatedTimestamp , SortOrder . Descending ) ; try { m_SUT . remove ( ) ; fail ( "Expecting exception because order was set" ) ; } catch ( IllegalStateException e ) { } }
Verify trying to remove with an order set will cause an exception.
Verify trying to remove with an order set will cause an exception .