Ejemplo n.º 1
0
        /// <exception cref="System.IO.IOException"/>
        private TestFailureToReadEdits.LimitedEditLogAnswer CauseFailureOnEditLogRead()
        {
            FSEditLog spyEditLog = NameNodeAdapter.SpyOnEditLog(nn1);

            TestFailureToReadEdits.LimitedEditLogAnswer answer = new TestFailureToReadEdits.LimitedEditLogAnswer
                                                                     ();
            Org.Mockito.Mockito.DoAnswer(answer).When(spyEditLog).SelectInputStreams(Matchers.AnyLong
                                                                                         (), Matchers.AnyLong(), (MetaRecoveryContext)Matchers.AnyObject(), Matchers.AnyBoolean
                                                                                         ());
            return(answer);
        }