TravelNotesPresenter implements TravelNotesContract.Presenter { @Override public int refreshData(String key,int page,boolean isNote) { page = 1; if(isNote) { loadData(key, page); }else{ loadData(key, page,10); } return page; } TravelNotesPresenter(TravelNotesContract.View view, TravelNotesActivity obj); @Override int refreshData(String key,int page,boolean isNote); @Override void loadData(String key,int page); @Override void loadData(String key,int page,int count); @Override void start(); @Override void close(); public TravelNotesActivity obj; }
@Test public void refreshData() throws Exception { travelNotesPresenter.refreshData("",0,false); }