@Test public void testHasPermission_假如_当传入无效token_那么返回无权限() { Assert.assertFalse(authService.hasPermission("invalid token", "/users", "POST")); }
@Override public boolean hasPermission(Result authResult) { return authResult.isSuccess() && (boolean) authResult.getData(); }
AuthService implements IAuthService { @Override public boolean hasPermission(Result authResult) { return authResult.isSuccess() && (boolean) authResult.getData(); } }
AuthService implements IAuthService { @Override public boolean hasPermission(Result authResult) { return authResult.isSuccess() && (boolean) authResult.getData(); }  }
AuthService implements IAuthService { @Override public boolean hasPermission(Result authResult) { return authResult.isSuccess() && (boolean) authResult.getData(); }  @Override Result authenticate(String authentication, String url, String method); @Override boolean ignoreAuthentication(String url); @Override boolean hasPermission(Result authResult); @Override boolean hasPermission(String authentication, String url, String method); @Override boolean invalidJwtAccessToken(String authentication); @Override Jwt getJwt(String authentication); }
AuthService implements IAuthService { @Override public boolean hasPermission(Result authResult) { return authResult.isSuccess() && (boolean) authResult.getData(); }  @Override Result authenticate(String authentication, String url, String method); @Override boolean ignoreAuthentication(String url); @Override boolean hasPermission(Result authResult); @Override boolean hasPermission(String authentication, String url, String method); @Override boolean invalidJwtAccessToken(String authentication); @Override Jwt getJwt(String authentication);  }