Bug 168026 Still use the existing data binding even though the aggregate is different
I had a table in which a data binding which aggregates on a group. When I insert a new data item in the report, although the expressions are same, it aggregates on All, then it refered to the existing data binding. The expected behavior would be a new data binding is created with different aggregates.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ReportItemHandleTest.java
.getProperty( Style.VERTICAL_ALIGN_PROP ) );
		label = (LabelHandle) designHandle.findElement( "nested label3" ); 
		assertEquals( DesignChoiceConstants.VERTICAL_ALIGN_MIDDLE, label
				.getProperty( Style.VERTICAL_ALIGN_PROP ) );
	}
	/**
	 * Tests the function for adding bound data columns.
	 * 
	 * @throws SemanticException
	 */
	public void testBoundDataColumns( ) throws SemanticException
	{
		TextItemHandle textHandle = (TextItemHandle) designHandle
				.findElement( "myText" ); 
		ComputedColumn tmpComputedColumn = new ComputedColumn( );
		tmpComputedColumn.setName( "new column1" ); 
		tmpComputedColumn.setExpression( "new column1 expr" ); 
		textHandle.addColumnBinding( tmpComputedColumn, false );
		List list = textHandle
				.getListProperty( IReportItemModel.BOUND_DATA_COLUMNS_PROP );
		assertEquals( 1, list.size( ) );
		tmpComputedColumn = new ComputedColumn( );
		tmpComputedColumn.setName( "new column1" ); 
		tmpComputedColumn.setExpression( "new column expr" ); 
		
		try
		{
			textHandle.addColumnBinding( tmpComputedColumn, false );
			fail( );
		}