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
ri = qr.getResultIterator( );
		rowIndex = 0;
		while ( ri.next( ) )
		{
			rowIndex++;
		}
		
		assertEquals( rowIndex, 8);
		ri.close();
		qr.close();
	}
	
	private ScriptDataSetDesign newDataSet( )
	{
		ScriptDataSetDesign dataSet = new ScriptDataSetDesign( "test" );
		
		dataSet.setOpenScript(	"count=11;");
		
		dataSet.setFetchScript( 
			"count--;" +
			"if (count==0) {return false; } else " +
			"{ if(count > 5 && count < 8)row.CH=null;else row.CH = \"HELLO\"; return true; }");
		
		
		dataSet.getResultSetHints( ).add( new ColumnDefinition("CH") );
		return dataSet;
	}
	
}