Bug 182061 Data engine changes to support result set sharing
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/binding/FilterByRowTest.java
}
		catch ( DataException e )
		{
			assertEquals( ResourceConstants.INVALID_DEFINITION_IN_FILTER,
					e.getErrorCode( ) );
		}
	}
	
	/**
	 * compare the two result sets
	 * @param resultIt1
	 * @param resultIt2
	 * @param expressions
	 * @throws Exception
	 */
	protected void checkQueryResult( IResultIterator resultIt1, IResultIterator resultIt2,
			String[] expressions ) throws Exception
	{
		while ( resultIt1.next( ) && resultIt2.next( ) )
		{
			for ( int i = 0; i < expressions.length; i++ )
			{
				assertTrue( evalAsString( expressions[i], resultIt1 ).equals( evalAsString( expressions[i],
						resultIt2 ) ) );
			}
		}
	}
	
	/**
	 * Execute Query