Program: 70201
Project: 70201
Buggy source:
@Test public void loadIDLTest(){
  String constraintsFile=this.getClass().getResource("String_Node_Str").getPath();
  LinkedList<Integer> updatedMethods=new LinkedList<Integer>();
  HashMap<Integer,LinkedList<MethodImplementation>> readMethods=new HashMap<Integer,LinkedList<MethodImplementation>>();
  int coreCount=IDLParser.parseIDLMethods(updatedMethods,readMethods,constraintsFile);
  assertEquals(coreCount,CORECOUNT_RESULT);
  assertEquals(readMethods.size(),CORECOUNT_RESULT);
  System.out.println("String_Node_Str");
  LinkedList<MethodImplementation> implList=readMethods.get(0);
  assertNotNull(implList);
  MethodImplementation impl=implList.get(0);
  System.out.println("String_Node_Str");
  assertEquals(implList.size(),CORE0_2_3_4_IMPLS_RESULT);
  Processor p=impl.getRequirements().getProcessors().get(0);
  assertEquals(p.getComputingUnits(),COMPUTING_UNITS_RESULT);
  assertEquals(p.getArchitecture(),"String_Node_Str");
  System.out.println("String_Node_Str");
  implList=readMethods.get(1);
  assertNotNull(implList);
  System.out.println("String_Node_Str");
  assertEquals(implList.size(),CORE1_IMPLS_RESULT);
  impl=implList.get(0);
  assertEquals(impl.getRequirements().getMemorySize(),2.0f,0);
  assertEquals(impl.getRequirements().getStorageSize(),10.0f,0);
  impl=implList.get(1);
  p=impl.getRequirements().getProcessors().get(0);
  assertEquals(p.getComputingUnits(),COMPUTING_UNITS_RESULT);
  assertEquals(impl.getRequirements().getMemorySize(),4.0f,0);
  impl=implList.get(2);
  p=impl.getRequirements().getProcessors().get(0);
  assertEquals(p.getComputingUnits(),1);
  System.out.println("String_Node_Str");
  implList=readMethods.get(2);
  assertNotNull(implList);
  System.out.println("String_Node_Str");
  assertEquals(implList.size(),CORE0_2_3_4_IMPLS_RESULT);
  System.out.println("String_Node_Str");
  implList=readMethods.get(3);
  assertNotNull(implList);
  System.out.println("String_Node_Str");
  assertEquals(implList.size(),CORE0_2_3_4_IMPLS_RESULT);
  System.out.println("String_Node_Str");
  implList=readMethods.get(4);
  assertNotNull(implList);
  System.out.println("String_Node_Str");
  assertEquals(implList.size(),CORE0_2_3_4_IMPLS_RESULT);
  impl=implList.get(0);
  System.out.println("String_Node_Str");
  assertEquals(impl.getRequirements().getProcessors().size(),COMPUTING_UNITS_RESULT);
  Processor p1=impl.getRequirements().getProcessors().get(0);
  Processor p2=impl.getRequirements().getProcessors().get(1);
  System.out.println("String_Node_Str");
  assertEquals(p1.getType(),"String_Node_Str");
  assertEquals(p1.getComputingUnits(),2);
  assertEquals(p1.getArchitecture(),"String_Node_Str");
  assertEquals(p1.getInternalMemory(),0.6f,0);
  System.out.println("String_Node_Str");
  assertEquals(p2.getType(),"String_Node_Str");
  assertEquals(p2.getComputingUnits(),256);
  assertEquals(p2.getArchitecture(),"String_Node_Str");
  assertEquals(p2.getInternalMemory(),0.024f,0);
}

Fixed version (ground truth):
@Test public void loadIDLTest(){
  String constraintsFile=this.getClass().getResource("String_Node_Str").getPath();
  LinkedList<Integer> updatedMethods=new LinkedList<Integer>();
  HashMap<Integer,LinkedList<MethodImplementation>> readMethods=new HashMap<Integer,LinkedList<MethodImplementation>>();
  int coreCount=IDLParser.parseIDLMethods(updatedMethods,readMethods,constraintsFile);
  assertEquals(coreCount,CORECOUNT_RESULT);
  assertEquals(readMethods.size(),CORECOUNT_RESULT);
  System.out.println("String_Node_Str");
  LinkedList<MethodImplementation> implList=readMethods.get(0);
  assertNotNull(implList);
  MethodImplementation impl=implList.get(0);
  System.out.println("String_Node_Str");
  assertEquals(implList.size(),CORE0_2_3_4_IMPLS_RESULT);
  Processor p=impl.getRequirements().getProcessors().get(0);
  assertEquals(p.getComputingUnits(),COMPUTING_UNITS_RESULT);
  assertEquals(p.getArchitecture(),"String_Node_Str");
  System.out.println("String_Node_Str");
  implList=readMethods.get(1);
  assertNotNull(implList);
  System.out.println("String_Node_Str");
  assertEquals(implList.size(),CORE1_IMPLS_RESULT);
  impl=implList.get(0);
  assertEquals(impl.getRequirements().getMemorySize(),2.0f,0);
  assertEquals(impl.getRequirements().getStorageSize(),10.0f,0);
  impl=implList.get(1);
  p=impl.getRequirements().getProcessors().get(0);
  assertEquals(p.getComputingUnits(),COMPUTING_UNITS_RESULT);
  assertEquals(impl.getRequirements().getMemorySize(),4.0f,0);
  impl=implList.get(2);
  p=impl.getRequirements().getProcessors().get(0);
  assertEquals(p.getComputingUnits(),1);
  System.out.println("String_Node_Str");
  implList=readMethods.get(2);
  assertNotNull(implList);
  System.out.println("String_Node_Str");
  assertEquals(implList.size(),CORE0_2_3_4_IMPLS_RESULT);
  System.out.println("String_Node_Str");
  implList=readMethods.get(3);
  assertNotNull(implList);
  System.out.println("String_Node_Str");
  assertEquals(implList.size(),CORE0_2_3_4_IMPLS_RESULT);
  System.out.println("String_Node_Str");
  implList=readMethods.get(4);
  assertNotNull(implList);
  System.out.println("String_Node_Str");
  assertEquals(implList.size(),CORE0_2_3_4_IMPLS_RESULT);
  impl=implList.get(0);
  System.out.println("String_Node_Str");
  assertEquals(impl.getRequirements().getProcessors().size(),PROCESSOR_COUNT);
  Processor p1=impl.getRequirements().getProcessors().get(0);
  Processor p2=impl.getRequirements().getProcessors().get(1);
  System.out.println("String_Node_Str");
  assertEquals(p1.getType(),"String_Node_Str");
  assertEquals(p1.getComputingUnits(),2);
  assertEquals(p1.getArchitecture(),"String_Node_Str");
  assertEquals(p1.getInternalMemory(),0.6f,0);
  System.out.println("String_Node_Str");
  assertEquals(p2.getType(),"String_Node_Str");
  assertEquals(p2.getComputingUnits(),256);
  assertEquals(p2.getArchitecture(),"String_Node_Str");
  assertEquals(p2.getInternalMemory(),0.024f,0);
}