Program: 62992
Project: 62992
Buggy source:
@Test public void testGetSubmissoinsForEvaluation() throws Exception {
  restoreTypicalDataInDatastore();
  ______TS("String_Node_Str");
  loginAsAdmin("String_Node_Str");
  EvaluationData evaluation=dataBundle.evaluations.get("String_Node_Str");
  evaluation.name="String_Node_Str";
  logic.createEvaluation(evaluation);
  HashMap<String,SubmissionData> submissions=invokeGetSubmissionsForEvaluation(evaluation.course,evaluation.name);
  assertEquals(17,submissions.keySet().size());
  for (  String key : submissions.keySet()) {
    assertEquals(evaluation.course,submissions.get(key).course);
    assertEquals(evaluation.name,submissions.get(key).evaluation);
  }
  ______TS("String_Node_Str");
  logic.createCourse("String_Node_Str","String_Node_Str","String_Node_Str");
  evaluation.course="String_Node_Str";
  logic.createEvaluation(evaluation);
  submissions=invokeGetSubmissionsForEvaluation(evaluation.course,evaluation.name);
  assertEquals(0,submissions.keySet().size());
  ______TS("String_Node_Str");
  String methodName="String_Node_Str";
  Class<?>[] paramTypes=new Class[]{String.class,String.class};
  verifyEntityDoesNotExistException(methodName,paramTypes,new Object[]{evaluation.course,"String_Node_Str"});
  verifyEntityDoesNotExistException(methodName,paramTypes,new Object[]{"String_Node_Str",evaluation.name});
}

Fixed version (ground truth):
@Test public void testGetSubmissoinsForEvaluation() throws Exception {
  restoreTypicalDataInDatastore();
  ______TS("String_Node_Str");
  loginAsAdmin("String_Node_Str");
  EvaluationData evaluation=dataBundle.evaluations.get("String_Node_Str");
  evaluation.name="String_Node_Str";
  logic.createEvaluation(evaluation);
  HashMap<String,SubmissionData> submissions=invokeGetSubmissionsForEvaluation(evaluation.course,evaluation.name);
  assertEquals(17,submissions.keySet().size());
  for (  String key : submissions.keySet()) {
    assertEquals(evaluation.course,submissions.get(key).course);
    assertEquals(evaluation.name,submissions.get(key).evaluation);
  }
  ______TS("String_Node_Str");
  StudentData student=dataBundle.students.get("String_Node_Str");
  student.team="String_Node_Str";
  logic.editStudent(student.email,student);
  submissions=invokeGetSubmissionsForEvaluation(evaluation.course,evaluation.name);
  assertEquals(13,submissions.keySet().size());
  List<StudentData> students=logic.getStudentListForCourse(evaluation.course);
  verifySubmissionsExistForCurrentTeamStructureInEvaluation(evaluation.name,students,new ArrayList<SubmissionData>(submissions.values()));
  ______TS("String_Node_Str");
  logic.createCourse("String_Node_Str","String_Node_Str","String_Node_Str");
  evaluation.course="String_Node_Str";
  logic.createEvaluation(evaluation);
  submissions=invokeGetSubmissionsForEvaluation(evaluation.course,evaluation.name);
  assertEquals(0,submissions.keySet().size());
  ______TS("String_Node_Str");
  String methodName="String_Node_Str";
  Class<?>[] paramTypes=new Class[]{String.class,String.class};
  verifyEntityDoesNotExistException(methodName,paramTypes,new Object[]{evaluation.course,"String_Node_Str"});
  verifyEntityDoesNotExistException(methodName,paramTypes,new Object[]{"String_Node_Str",evaluation.name});
}