@Test public void testNotLoginData() { httpClientAdapter.setAccountToken(null); apiManager.accountApi.testNotLoginData(); Result<Void> result = apiManager.accountApi.testLogin(); Assert.assertEquals(result.getStatus(), Result.ACCOUNT_ERROR); }
@RequestMapping(value = "account/testLogin", method = {RequestMethod.POST}) public Result<Void> testLogin(ExampleAccount account) throws Exception { return Result.createSuccess(); }
AccountApiController { @RequestMapping(value = "account/testLogin", method = {RequestMethod.POST}) public Result<Void> testLogin(ExampleAccount account) throws Exception { return Result.createSuccess(); } }
AccountApiController { @RequestMapping(value = "account/testLogin", method = {RequestMethod.POST}) public Result<Void> testLogin(ExampleAccount account) throws Exception { return Result.createSuccess(); }  }
AccountApiController { @RequestMapping(value = "account/testLogin", method = {RequestMethod.POST}) public Result<Void> testLogin(ExampleAccount account) throws Exception { return Result.createSuccess(); }  @RequestMapping(value = "account/login", method = RequestMethod.POST) @Account(false) String login(); @RequestMapping(value = "account/testLogin", method = {RequestMethod.POST}) Result<Void> testLogin(ExampleAccount account); @Account(false) @RequestMapping(value = "baseUrl/testNotLogin", method = {RequestMethod.GET, RequestMethod.POST}) Result<User> testNotLogin(); }
AccountApiController { @RequestMapping(value = "account/testLogin", method = {RequestMethod.POST}) public Result<Void> testLogin(ExampleAccount account) throws Exception { return Result.createSuccess(); }  @RequestMapping(value = "account/login", method = RequestMethod.POST) @Account(false) String login(); @RequestMapping(value = "account/testLogin", method = {RequestMethod.POST}) Result<Void> testLogin(ExampleAccount account); @Account(false) @RequestMapping(value = "baseUrl/testNotLogin", method = {RequestMethod.GET, RequestMethod.POST}) Result<User> testNotLogin();  }