Ejemplo n.º 1
0
                /// <exception cref="System.Exception"/>
                public FSEditLogOp Answer(InvocationOnMock invocation)
                {
                    FSEditLogOp op = (FSEditLogOp)invocation.CallRealMethod();

                    if (this._enclosing.throwExceptionOnRead && TestFailureToReadEdits.TestDir3.Equals
                            (NameNodeAdapter.GetMkdirOpPath(op)))
                    {
                        throw new IOException("failed to read op creating " + TestFailureToReadEdits.TestDir3
                                              );
                    }
                    else
                    {
                        return(op);
                    }
                }