Bug 182061 Data engine changes to support result set sharing
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/binding/GroupOnRowTest.java
this.checkOutputFile( );
	}
	
	/**
	 * Test feature of group on row position
	 * 
	 * @throws Exception
	 */
	public void testGroupOnRowPosition( ) throws Exception
	{
		String[] bindingNameGroup = new String[3];
		bindingNameGroup[0] = "GROUP_ID";
		bindingNameGroup[1] = "GROUP_0";
		bindingNameGroup[2] = "GROUP_AMOUNT1";
		IBaseExpression[] bindingExprGroup = new IBaseExpression[3];
		bindingExprGroup[0] = new ScriptExpression( "dataSetRow.ID" );
		bindingExprGroup[1] = new ScriptExpression( "dataSetRow._rowPosition" );
		bindingExprGroup[2] = new ScriptExpression( "dataSetRow.AMOUNT1" );
		GroupDefinition[] groupDefn = new GroupDefinition[]{
				new GroupDefinition( "group1" ),
				new GroupDefinition( "group2" ),
				new GroupDefinition( "group3" )
		};
		groupDefn[0].setKeyExpression( "row.GROUP_ID" );
		groupDefn[0].setInterval( IGroupDefinition.NUMERIC_INTERVAL );
		groupDefn[0].setIntervalRange( 5 );
		groupDefn[0].setIntervalStart( new Integer(8) );
		groupDefn[1].setKeyExpression( "row.GROUP_0" );
		groupDefn[1].setInterval( IGroupDefinition.NUMERIC_INTERVAL );
		groupDefn[1].setIntervalRange( 3 );