/// <exception cref="System.IO.IOException"/>
 private static void RunBlockFileCloseTest(string methodName, FiTestUtil.Action <DatanodeID
                                                                                 , IOException> a)
 {
     FiTestUtil.Log.Info("Running " + methodName + " ...");
     DataTransferTestUtil.DataTransferTest t = (DataTransferTestUtil.DataTransferTest)
                                               DataTransferTestUtil.InitTest();
     t.fiBlockFileClose.Set(a);
     TestFiDataTransferProtocol.Write1byte(methodName);
 }
 /// <exception cref="System.IO.IOException"/>
 private static void RunPipelineCloseAck(string name, int i, DataTransferTestUtil.DataNodeAction
                                         a)
 {
     FiTestUtil.Log.Info("Running " + name + " ...");
     DataTransferTestUtil.DataTransferTest t = (DataTransferTestUtil.DataTransferTest)
                                               DataTransferTestUtil.InitTest();
     FiTestUtil.MarkerConstraint marker = new FiTestUtil.MarkerConstraint(name);
     t.fiPipelineClose.Set(new DataTransferTestUtil.DatanodeMarkingAction(name, i, marker
                                                                          ));
     t.fiPipelineAck.Set(new FiTestUtil.ConstraintSatisfactionAction <DatanodeID, IOException
                                                                      >(a, marker));
     TestFiDataTransferProtocol.Write1byte(name);
 }