@Test(dependsOnMethods = {"testMenuCreate"}) public void testMenuGet() throws WxErrorException { WxMpMenu wxMenu = this.wxService.getMenuService().menuGet(); assertNotNull(wxMenu); System.out.println(wxMenu.toJson()); }
@Override public WxMpMenu menuGet() throws WxErrorException { String url = API_URL_PREFIX + "/get"; try { String resultContent = this.wxMpService.get(url, null); return WxMpMenu.fromJson(resultContent); } catch (WxErrorException e) { if (e.getError().getErrorCode() == 46003) { return null; } throw e; } }
WxMpMenuServiceImpl implements WxMpMenuService { @Override public WxMpMenu menuGet() throws WxErrorException { String url = API_URL_PREFIX + "/get"; try { String resultContent = this.wxMpService.get(url, null); return WxMpMenu.fromJson(resultContent); } catch (WxErrorException e) { if (e.getError().getErrorCode() == 46003) { return null; } throw e; } } }
WxMpMenuServiceImpl implements WxMpMenuService { @Override public WxMpMenu menuGet() throws WxErrorException { String url = API_URL_PREFIX + "/get"; try { String resultContent = this.wxMpService.get(url, null); return WxMpMenu.fromJson(resultContent); } catch (WxErrorException e) { if (e.getError().getErrorCode() == 46003) { return null; } throw e; } } WxMpMenuServiceImpl(WxMpService wxMpService); }
WxMpMenuServiceImpl implements WxMpMenuService { @Override public WxMpMenu menuGet() throws WxErrorException { String url = API_URL_PREFIX + "/get"; try { String resultContent = this.wxMpService.get(url, null); return WxMpMenu.fromJson(resultContent); } catch (WxErrorException e) { if (e.getError().getErrorCode() == 46003) { return null; } throw e; } } WxMpMenuServiceImpl(WxMpService wxMpService); @Override String menuCreate(WxMenu menu); @Override String menuCreate(String json); @Override void menuDelete(); @Override void menuDelete(String menuId); @Override WxMpMenu menuGet(); @Override WxMenu menuTryMatch(String userid); @Override WxMpGetSelfMenuInfoResult getSelfMenuInfo(); }
WxMpMenuServiceImpl implements WxMpMenuService { @Override public WxMpMenu menuGet() throws WxErrorException { String url = API_URL_PREFIX + "/get"; try { String resultContent = this.wxMpService.get(url, null); return WxMpMenu.fromJson(resultContent); } catch (WxErrorException e) { if (e.getError().getErrorCode() == 46003) { return null; } throw e; } } WxMpMenuServiceImpl(WxMpService wxMpService); @Override String menuCreate(WxMenu menu); @Override String menuCreate(String json); @Override void menuDelete(); @Override void menuDelete(String menuId); @Override WxMpMenu menuGet(); @Override WxMenu menuTryMatch(String userid); @Override WxMpGetSelfMenuInfoResult getSelfMenuInfo();  }