Bug 201527 The cross grandtotal should be in the Grand Total list in "Filter by" tree[1102]
Description: The cross grandtotal should be in the Grand Total list in "Filter by" tree[1102] Build number: 2.2.0.v20070829-0630 Steps to reproduce: 1, New a crosstab has row dimension and column dimension 2, Specify row and column grandtotals 3, Create a filter on crosstab 4, Check the Filter by list of filter condition Expected result: The cross grandtotal(Aggregate On: All) should be in the Grand Total list but not in the Measures list Actual result: The cross grandtotal is in the Measures list
data/org.eclipse.birt.report.data.adapter/test/org/eclipse/birt/report/data/adapter/internal/script/DataRequestSessionTest.java
IDimensionDefinition dim1 = columnEdge.createDimension( "dim1" );
		IHierarchyDefinition hier1 = dim1.createHierarchy( "hier1" );
		hier1.createLevel( "level1" );
		hier1.createLevel( "level2" );
		hier1.createLevel( "level3" );
		
		
		IEdgeDefinition rowEdge = query.createEdge( ICubeQueryDefinition.ROW_EDGE );
		IDimensionDefinition dim2 = rowEdge.createDimension( "dim2" );
		IHierarchyDefinition hier2 = dim2.createHierarchy( "hier2" );
		hier2.createLevel( "level1" );
		List l1 = this.session.getCubeQueryUtil( ).getReferencedLevels( "dimension[\"dim1\"][\"level1\"]", "data[\"b1\"]", query );
		assertTrue( l1.size( ) == 0 );
		
		List l2 = this.session.getCubeQueryUtil( ).getReferencedLevels( "dimension[\"dim1\"][\"level1\"]", "data[\"b7\"]", query );
		assertTrue( l2.size( ) == 1 );
		assertTrue( ((ILevelDefinition)l2.get(0)).getName( ).equals( "level1" ));
		
		List l3 = this.session.getCubeQueryUtil( ).getReferencedLevels( "dimension[\"dim2\"][\"level1\"]", "data[\"b71\"]", query );
		assertTrue( l3.size( ) == 2 );
		assertTrue( ((ILevelDefinition)l3.get(0)).getName( ).equals( "level1" ));
		assertTrue( ((ILevelDefinition)l3.get(1)).getName( ).equals( "level2" ));
	}
	
	public void tearDown()
	{
		this.session.shutdown( );
	}
}