ValidatorsDetailPresenter extends BasePresenter<ValidatorsDetailContract.View> implements ValidatorsDetailContract.Presenter { @Override public DelegateItemInfo getDelegateDetail() { DelegateItemInfo delegateDetail = new DelegateItemInfo(); if (mVerifyNodeDetail != null) { delegateDetail.setNodeName(mVerifyNodeDetail.getName()); delegateDetail.setNodeId(mVerifyNodeDetail.getNodeId()); delegateDetail.setUrl(mVerifyNodeDetail.getUrl()); } return delegateDetail; }  VerifyNodeDetail getmVerifyNodeDetail(); void setmVerifyNodeDetail(VerifyNodeDetail mVerifyNodeDetail); @Override void loadValidatorsDetailData(); @Override DelegateItemInfo getDelegateDetail();  }
@Test public void getDelegateDetail(){ VerifyNodeDetail mVerifyNodeDetail = new VerifyNodeDetail(); mVerifyNodeDetail.setBlockOutNumber(100); mVerifyNodeDetail.setDelegate("200"); mVerifyNodeDetail.setName("lucy"); mVerifyNodeDetail.setNodeId("123"); presenter.setmVerifyNodeDetail(mVerifyNodeDetail); DelegateItemInfo delegateItemInfo = presenter.getDelegateDetail(); LogUtils.i("------delegateItemInfo:" + delegateItemInfo); }