示例#1
0
 public virtual void Setup()
 {
     mockProtocol     = MockitoUtil.MockProtocol <HAServiceProtocol>();
     mockZkfcProtocol = MockitoUtil.MockProtocol <ZKFCProtocol>();
     tool             = new _DFSHAAdmin_118(this);
     // OVerride the target to return our mock protocol
     // mock setup doesn't really throw
     tool.SetConf(GetHAConf());
     tool.SetErrOut(new TextWriter(errOutBytes));
     tool.SetOut(new TextWriter(outBytes));
 }
示例#2
0
 public ZKFCProtocolServerSideTranslatorPB(ZKFCProtocol server)
 {
     this.server = server;
 }