@Test public void recycle() { JSONObject json = new JSONObject(); json.put("name", "recycle"); recycleService().setRecycle(json); mockHelper.reset(); mockHelper.mock("/" + uriPrefix() + "/recycle"); JSONObject object = mockHelper.getResponse().asJson(); Assert.assertEquals(9995, object.getIntValue("code")); Assert.assertEquals(message.get(Validators.PREFIX + "illegal-sign"), object.getString("message")); mockHelper.reset(); sign.put(mockHelper.getRequest().getMap(), null); mockHelper.mock("/" + uriPrefix() + "/recycle"); object = mockHelper.getResponse().asJson(); Assert.assertEquals(0, object.getIntValue("code")); JSONObject data = object.getJSONObject("data"); Assert.assertEquals("recycle", data.getString("name")); }
@Execute(name = "recycle", validates = { @Validate(validator = Validators.SIGN) }) public Object recycle() { return getRecycleService().recycle(); }
RecycleCtrlSupport { @Execute(name = "recycle", validates = { @Validate(validator = Validators.SIGN) }) public Object recycle() { return getRecycleService().recycle(); } }
RecycleCtrlSupport { @Execute(name = "recycle", validates = { @Validate(validator = Validators.SIGN) }) public Object recycle() { return getRecycleService().recycle(); }  }
RecycleCtrlSupport { @Execute(name = "recycle", validates = { @Validate(validator = Validators.SIGN) }) public Object recycle() { return getRecycleService().recycle(); }  @Execute(name = "delete", validates = { @Validate(validator = Validators.ID, parameter = "id", failureCode = 86), @Validate(validator = Validators.SIGN) }) Object delete(); @Execute(name = "recycle", validates = { @Validate(validator = Validators.SIGN) }) Object recycle(); @Execute(name = "restore", validates = { @Validate(validator = Validators.ID, parameter = "id", failureCode = 86), @Validate(validator = Validators.SIGN) }) Object restore(); }
RecycleCtrlSupport { @Execute(name = "recycle", validates = { @Validate(validator = Validators.SIGN) }) public Object recycle() { return getRecycleService().recycle(); }  @Execute(name = "delete", validates = { @Validate(validator = Validators.ID, parameter = "id", failureCode = 86), @Validate(validator = Validators.SIGN) }) Object delete(); @Execute(name = "recycle", validates = { @Validate(validator = Validators.SIGN) }) Object recycle(); @Execute(name = "restore", validates = { @Validate(validator = Validators.ID, parameter = "id", failureCode = 86), @Validate(validator = Validators.SIGN) }) Object restore();  }