Program: 69179
Project: 69179
Buggy source:
public void testGetSelectionList() throws Exception {
  ArrayList selist=(ArrayList)task.getSelectionList("String_Node_Str");
  IParameterSelectionChoice se=(IParameterSelectionChoice)selist.get(0);
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  int listnumb=selist.size();
  assertEquals(21,listnumb);
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  task.setValue("String_Node_Str","String_Node_Str");
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  task.setValue("String_Node_Str","String_Node_Str");
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  task.setValue("String_Node_Str","String_Node_Str");
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  Integer icustno=new Integer("String_Node_Str");
  task.setValue("String_Node_Str",icustno);
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  Integer iorderno=new Integer("String_Node_Str");
  task.setValue("String_Node_Str",iorderno);
}

Fixed version (ground truth):
public void testGetSelectionList() throws Exception {
  ArrayList selist=(ArrayList)task.getSelectionList("String_Node_Str");
  IParameterSelectionChoice se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  se=(IParameterSelectionChoice)selist.get(1);
  assertEquals("String_Node_Str",se.getValue().toString());
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  int listnumb=selist.size();
  assertEquals(21,listnumb);
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  task.setValue("String_Node_Str","String_Node_Str");
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  task.setValue("String_Node_Str","String_Node_Str");
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  task.setValue("String_Node_Str","String_Node_Str");
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  Integer icustno=new Integer("String_Node_Str");
  task.setValue("String_Node_Str",icustno);
  selist=(ArrayList)task.getSelectionList("String_Node_Str");
  se=(IParameterSelectionChoice)selist.get(0);
  assertEquals("String_Node_Str",se.getValue().toString());
  Integer iorderno=new Integer("String_Node_Str");
  task.setValue("String_Node_Str",iorderno);
}