Program: 68444
Project: 68444
Buggy source:
public void testCursorWithPageEdge1() throws Exception {
  ICubeQueryDefinition cqd=creator.createQueryDefintionWithPage1();
  IBinding rowGrandTotal=new Binding("String_Node_Str");
  rowGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  rowGrandTotal.setExpression(new ScriptExpression("String_Node_Str"));
  rowGrandTotal.addAggregateOn("String_Node_Str");
  rowGrandTotal.addAggregateOn("String_Node_Str");
  rowGrandTotal.addAggregateOn("String_Node_Str");
  IBinding columnGrandTotal=new Binding("String_Node_Str");
  columnGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_AVE_FUNC);
  columnGrandTotal.setExpression(new ScriptExpression("String_Node_Str"));
  columnGrandTotal.addAggregateOn("String_Node_Str");
  columnGrandTotal.addAggregateOn("String_Node_Str");
  columnGrandTotal.addAggregateOn("String_Node_Str");
  columnGrandTotal.addAggregateOn("String_Node_Str");
  IBinding totalGrandTotal=new Binding("String_Node_Str");
  totalGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  totalGrandTotal.setExpression(new ScriptExpression("String_Node_Str"));
  totalGrandTotal.addAggregateOn("String_Node_Str");
  cqd.addBinding(rowGrandTotal);
  cqd.addBinding(columnGrandTotal);
  cqd.addBinding(totalGrandTotal);
  BirtCubeView cubeView=new BirtCubeView(new CubeQueryExecutor(null,cqd,de.getSession(),this.scope,de.getContext()),null);
  CubeCursor dataCursor=cubeView.getCubeCursor(new StopSign(),cube);
  List pageEdgeBindingNames=new ArrayList();
  pageEdgeBindingNames.add("String_Node_Str");
  List columnEdgeBindingNames=new ArrayList();
  columnEdgeBindingNames.add("String_Node_Str");
  columnEdgeBindingNames.add("String_Node_Str");
  columnEdgeBindingNames.add("String_Node_Str");
  List rowEdgeBindingNames=new ArrayList();
  rowEdgeBindingNames.add("String_Node_Str");
  rowEdgeBindingNames.add("String_Node_Str");
  List measureBindingNames=new ArrayList();
  measureBindingNames.add("String_Node_Str");
  List rowGrandTotalNames=new ArrayList();
  rowGrandTotalNames.add("String_Node_Str");
  testOut.print(creator.printCubeAlongPageEdge(dataCursor,pageEdgeBindingNames,columnEdgeBindingNames,rowEdgeBindingNames,measureBindingNames,rowGrandTotalNames,"String_Node_Str","String_Node_Str",null));
  this.checkOutputFile();
}

Fixed version (ground truth):
public void testCursorWithPageEdge1() throws Exception {
  ICubeQueryDefinition cqd=creator.createQueryDefintionWithPage1();
  IBinding rowGrandTotal=new Binding("String_Node_Str");
  rowGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  rowGrandTotal.setExpression(new ScriptExpression("String_Node_Str"));
  rowGrandTotal.addAggregateOn("String_Node_Str");
  rowGrandTotal.addAggregateOn("String_Node_Str");
  rowGrandTotal.addAggregateOn("String_Node_Str");
  IBinding columnGrandTotal=new Binding("String_Node_Str");
  columnGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_AVE_FUNC);
  columnGrandTotal.setExpression(new ScriptExpression("String_Node_Str"));
  columnGrandTotal.addAggregateOn("String_Node_Str");
  columnGrandTotal.addAggregateOn("String_Node_Str");
  columnGrandTotal.addAggregateOn("String_Node_Str");
  columnGrandTotal.addAggregateOn("String_Node_Str");
  IBinding totalGrandTotal=new Binding("String_Node_Str");
  totalGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  totalGrandTotal.setExpression(new ScriptExpression("String_Node_Str"));
  totalGrandTotal.addAggregateOn("String_Node_Str");
  cqd.addBinding(rowGrandTotal);
  cqd.addBinding(columnGrandTotal);
  cqd.addBinding(totalGrandTotal);
  BirtCubeView cubeView=new BirtCubeView(new CubeQueryExecutor(null,cqd,de.getSession(),this.scope,de.getContext()),null);
  CubeCursor dataCursor=cubeView.getCubeCursor(new StopSign(),cube,false);
  List pageEdgeBindingNames=new ArrayList();
  pageEdgeBindingNames.add("String_Node_Str");
  List columnEdgeBindingNames=new ArrayList();
  columnEdgeBindingNames.add("String_Node_Str");
  columnEdgeBindingNames.add("String_Node_Str");
  columnEdgeBindingNames.add("String_Node_Str");
  List rowEdgeBindingNames=new ArrayList();
  rowEdgeBindingNames.add("String_Node_Str");
  rowEdgeBindingNames.add("String_Node_Str");
  List measureBindingNames=new ArrayList();
  measureBindingNames.add("String_Node_Str");
  List rowGrandTotalNames=new ArrayList();
  rowGrandTotalNames.add("String_Node_Str");
  testOut.print(creator.printCubeAlongPageEdge(dataCursor,pageEdgeBindingNames,columnEdgeBindingNames,rowEdgeBindingNames,measureBindingNames,rowGrandTotalNames,"String_Node_Str","String_Node_Str",null));
  this.checkOutputFile();
}