Bug 192829 Aggregation binding filter doesn't work for crosstab
The filter condition on bindings for Crosstab doesn't take effect. Currently Dte hasn't supported this yet.
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/olap/data/impl/CubeAggregationTest.java
cubeQuery.addBinding( level21_sum );
		
		
		
		IConditionalExpression expr1 = new ConditionalExpression( "dimension[\"dimension2\"][\"level21\"]",
				IConditionalExpression.OP_TOP_N,
				"1" );
		CubeFilterDefinition cubeFilter = new CubeFilterDefinition( expr1 );
		IJSFilterHelper filterHelper = BaseDimensionFilterEvalHelper.createFilterHelper( baseScope,
				cubeQuery,
				cubeFilter );
		cubeQueryExcutorHelper.addJSFilter( filterHelper );
		
		
		AggregationDefinition[] aggregations = new AggregationDefinition[1];
		int[] sortType = new int[1];
		sortType[0] = IDimensionSortDefn.SORT_ASC;
		DimLevel[] levelsForFilter = new DimLevel[]{dimLevel21};
		AggregationFunctionDefinition[] funcitons = new AggregationFunctionDefinition[1];
		funcitons[0] = new AggregationFunctionDefinition( "level21_sum", "measure1", IBuildInAggregation.TOTAL_SUM_FUNC );
		aggregations[0] = new AggregationDefinition( levelsForFilter, sortType, funcitons );
		
		
		IAggregationResultSet[] resultSet = cubeQueryExcutorHelper.execute( aggregations,
				new StopSign( ) );
		
		assertEquals( resultSet[0].length( ), 1 );
		assertEquals( resultSet[0].getAggregationDataType( 0 ), DataType.DOUBLE_TYPE );
		assertEquals( resultSet[0].getLevelIndex( dimLevel21 ), 0 );
		assertEquals( resultSet[0].getLevelKeyDataType( dimLevel21, "level21" ), DataType.STRING_TYPE );